diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-16 09:00:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-16 09:00:34 +0000 |
commit | 441fdff85f0b2887e2e7206101822da822193b3c (patch) | |
tree | f62b497fd14626e8c14cb7876500ab9d6fb8e7f5 /libsylph/imap.c | |
parent | 1d0b765f618f4791d75a1226756d4568ca35be3c (diff) |
libsylph: use itos_buf() because itos() is not thread-safe.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2286 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index 129c0485..2a685f43 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -1194,6 +1194,7 @@ static gchar *imap_fetch_msg(Folder *folder, FolderItem *item, gint uid) { gchar *path, *filename; IMAPSession *session; + gchar nstr[16]; gint ok; g_return_val_if_fail(folder != NULL, NULL); @@ -1202,7 +1203,8 @@ static gchar *imap_fetch_msg(Folder *folder, FolderItem *item, gint uid) path = folder_item_get_path(item); if (!is_dir_exist(path)) make_dir_hier(path); - filename = g_strconcat(path, G_DIR_SEPARATOR_S, itos(uid), NULL); + filename = g_strconcat(path, G_DIR_SEPARATOR_S, itos_buf(nstr, uid), + NULL); g_free(path); if (is_file_exist(filename)) { |