# HG changeset patch # User melunko # Date 1176316377 -3600 # Node ID d8d280de15504aa2724c53ba63a6c0c4e4f4551a # Parent b820a52b1c92579c3f785ebf0342c0a936a434dd [svn r529] Fixed string conversion error at gmyth_scheduler_get_schedule_list() diff -r b820a52b1c92 -r d8d280de1550 gmyth/src/gmyth_scheduler.c --- a/gmyth/src/gmyth_scheduler.c Wed Apr 11 19:31:55 2007 +0100 +++ b/gmyth/src/gmyth_scheduler.c Wed Apr 11 19:32:57 2007 +0100 @@ -239,14 +239,14 @@ schedule->channel_id = (guint) g_ascii_strtoull (row[2], NULL, 10); /* generate a time_t from a time and a date db field */ - g_sprintf (date_time, "%sT%s", row[4], row[3]); - + date_time = g_strdup_printf ("%sT%s", row[4], row[3]); schedule->start_time = gmyth_util_string_to_time_val (date_time); + g_free (date_time); /* generate a time_t from a time and a date db field */ - g_sprintf (date_time, "%sT%s", row[6], row[5]); - + date_time = g_strdup_printf ("%sT%s", row[6], row[5]); schedule->end_time = gmyth_util_string_to_time_val (date_time); + g_free (date_time); schedule->title = g_string_new (row[7]); schedule->subtitle = g_string_new (row[8]);