Mercurial > pidgin
diff src/gtklog.c @ 10636:0f5c5e6fb27f
[gaim-migrate @ 12118]
The strftime warnings fiunally got to me, so I made gaim_strftime to work
around it.
Turns out KingAnt had already discovered this solution for oscar.c but left
it #iffed out.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 24 Feb 2005 01:11:17 +0000 |
parents | 77ef3f2f0df8 |
children | 6480697e907b |
line wrap: on
line diff
--- a/src/gtklog.c Wed Feb 23 23:39:59 2005 +0000 +++ b/src/gtklog.c Thu Feb 24 01:11:17 2005 +0000 @@ -32,6 +32,7 @@ #include "gtklog.h" #include "gtkutils.h" #include "log.h" +#include "util.h" static GHashTable *log_viewers = NULL; static void populate_log_tree(GaimGtkLogViewer *lv); @@ -96,7 +97,7 @@ GaimLog *log = logs->data; char title[64]; char *title_utf8; /* temporary variable for utf8 conversion */ - strftime(title, sizeof(title), "%c", localtime(&log->time)); + gaim_strftime(title, sizeof(title), "%c", localtime(&log->time)); title_utf8 = gaim_utf8_try_convert(title); strncpy(title, title_utf8, sizeof(title)); g_free(title_utf8); @@ -183,7 +184,7 @@ read = gaim_log_read(log, &flags); viewer->flags = flags; - strftime(time, sizeof(time), "%c", localtime(&log->time)); + gaim_strftime(time, sizeof(time), "%c", localtime(&log->time)); title = g_strdup_printf("%s - %s", log->name, time); title_utf8 = gaim_utf8_try_convert(title); g_free(title); @@ -223,8 +224,8 @@ while (logs) { GaimLog *log = logs->data; - strftime(month, sizeof(month), "%B %Y", localtime(&log->time)); - strftime(title, sizeof(title), "%c", localtime(&log->time)); + gaim_strftime(month, sizeof(month), "%B %Y", localtime(&log->time)); + gaim_strftime(title, sizeof(title), "%c", localtime(&log->time)); /* do utf8 conversions */ utf8_tmp = gaim_utf8_try_convert(month);