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/news.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/news.c')
-rw-r--r-- | libsylph/news.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsylph/news.c b/libsylph/news.c index 498d283e..69dc0c29 100644 --- a/libsylph/news.c +++ b/libsylph/news.c @@ -371,6 +371,7 @@ static gchar *news_fetch_msg(Folder *folder, FolderItem *item, gint num) { gchar *path, *filename; NNTPSession *session; + gchar nstr[16]; gint ok; g_return_val_if_fail(folder != NULL, NULL); @@ -379,7 +380,8 @@ static gchar *news_fetch_msg(Folder *folder, FolderItem *item, gint num) path = folder_item_get_path(item); if (!is_dir_exist(path)) make_dir_hier(path); - filename = g_strconcat(path, G_DIR_SEPARATOR_S, itos(num), NULL); + filename = g_strconcat(path, G_DIR_SEPARATOR_S, itos_buf(nstr, num), + NULL); g_free(path); if (is_file_exist(filename)) { |