[svn r529] Fixed string conversion error at gmyth_scheduler_get_schedule_list()
1.1 --- a/gmyth/src/gmyth_scheduler.c Wed Apr 11 19:31:55 2007 +0100
1.2 +++ b/gmyth/src/gmyth_scheduler.c Wed Apr 11 19:32:57 2007 +0100
1.3 @@ -239,14 +239,14 @@
1.4 schedule->channel_id = (guint) g_ascii_strtoull (row[2], NULL, 10);
1.5
1.6 /* generate a time_t from a time and a date db field */
1.7 - g_sprintf (date_time, "%sT%s", row[4], row[3]);
1.8 -
1.9 + date_time = g_strdup_printf ("%sT%s", row[4], row[3]);
1.10 schedule->start_time = gmyth_util_string_to_time_val (date_time);
1.11 + g_free (date_time);
1.12
1.13 /* generate a time_t from a time and a date db field */
1.14 - g_sprintf (date_time, "%sT%s", row[6], row[5]);
1.15 -
1.16 + date_time = g_strdup_printf ("%sT%s", row[6], row[5]);
1.17 schedule->end_time = gmyth_util_string_to_time_val (date_time);
1.18 + g_free (date_time);
1.19
1.20 schedule->title = g_string_new (row[7]);
1.21 schedule->subtitle = g_string_new (row[8]);