From 241a65b72b3620f85bad00fac28d268e5f47d2d6 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 27 Sep 1999 20:56:29 +0000 Subject: Small fix -miguel svn path=/trunk/; revision=1265 --- calendar/gncal-todo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gncal-todo.c') diff --git a/calendar/gncal-todo.c b/calendar/gncal-todo.c index 05611e14e8..941eddf453 100644 --- a/calendar/gncal-todo.c +++ b/calendar/gncal-todo.c @@ -515,10 +515,10 @@ static char * convert_time_t_to_char (time_t t) { char buf[100]; - struct tm *tm; + struct tm tm; - tm = localtime (&t); - strftime(buf, sizeof (buf), "%m/%d/%Y", tm); + tm = *localtime (&t); + strftime(buf, sizeof (buf), "%m/%d/%Y", &tm); return g_strdup (buf); } -- cgit