diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 09:29:38 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 09:29:38 +0000 |
commit | d696272192e69a7c7c48fd8686886d3c00b1d40c (patch) | |
tree | 47c08cd3cc9487450ae7f5f3f9f75ee4d390cc05 /libsylph/mbox.c | |
parent | f7544bcd10599ba3204bd483b398df342f15e7d1 (diff) |
made workaround for 64-bit time_t on win32.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3391 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/mbox.c')
-rw-r--r-- | libsylph/mbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/mbox.c b/libsylph/mbox.c index 4a241aa1..d00b66de 100644 --- a/libsylph/mbox.c +++ b/libsylph/mbox.c @@ -499,6 +499,7 @@ gint export_msgs_to_mbox(FolderItem *src, GSList *mlist, const gchar *mbox) gchar buf[BUFFSIZE]; PrefsAccount *cur_ac; guint count = 0, length; + time_t date_t_; g_return_val_if_fail(src != NULL, -1); g_return_val_if_fail(src->folder != NULL, -1); @@ -539,8 +540,8 @@ gint export_msgs_to_mbox(FolderItem *src, GSList *mlist, const gchar *mbox) sizeof(buf)); extract_address(buf); - fprintf(mbox_fp, "From %s %s", - buf, ctime(&msginfo->date_t)); + date_t_ = msginfo->date_t; + fprintf(mbox_fp, "From %s %s", buf, ctime(&date_t_)); while (fgets(buf, sizeof(buf), msg_fp) != NULL) { if (!strncmp(buf, "From ", 5)) |