aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gncal-todo.c')
-rw-r--r--calendar/gncal-todo.c6
1 files changed, 3 insertions, 3 deletions
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);
}