[svn r529] Fixed string conversion error at gmyth_scheduler_get_schedule_list() trunk
authormelunko
Wed Apr 11 19:32:57 2007 +0100 (2007-04-11)
branchtrunk
changeset 524d8d280de1550
parent 523 b820a52b1c92
child 525 d616e308f6b6
[svn r529] Fixed string conversion error at gmyth_scheduler_get_schedule_list()
gmyth/src/gmyth_scheduler.c
     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]);