libpurple/protocols/gg/utils.c

changeset 33757
878c94d4ffb3
parent 33348
2394cd23ce8f
child 34304
faf0414a8b51
child 34421
d7cf7492cf82
equal deleted inserted replaced
33755:2b6a00fd8864 33757:878c94d4ffb3
230 const gchar * ggp_date_strftime(const gchar *format, time_t date) 230 const gchar * ggp_date_strftime(const gchar *format, time_t date)
231 { 231 {
232 GDate g_date; 232 GDate g_date;
233 static gchar buff[30]; 233 static gchar buff[30];
234 234
235 g_date_set_time(&g_date, date); 235 g_date_set_time_t(&g_date, date);
236 if (0 == g_date_strftime(buff, sizeof(buff), format, &g_date)) 236 if (0 == g_date_strftime(buff, sizeof(buff), format, &g_date))
237 return NULL; 237 return NULL;
238 return buff; 238 return buff;
239 } 239 }
240 240

mercurial