From 441fdff85f0b2887e2e7206101822da822193b3c Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 16 Oct 2009 09:00:34 +0000 Subject: 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 --- libsylph/imap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libsylph/imap.c') 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)) { -- cgit v1.2.3