aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c4
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)) {