RSSyl: Use g_mkstemp() instead of mkstemp()
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 16 Jun 2015 20:54:36 +0000 (22:54 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 16 Jun 2015 20:55:20 +0000 (22:55 +0200)
src/plugins/rssyl/claws.def
src/plugins/rssyl/rssyl_add_item.c

index da5dcbdcfd3a4f3d13bb3f8f5f5e186cac4d3b78..8e942555495107539e8809aa990058f08202e678 100644 (file)
@@ -84,7 +84,6 @@ mainwindow_get_mainwindow
 make_dir
 make_dir_hier
 mh_get_class
-mkstemp
 move_file
 msgcache_destroy
 prefs_common
index 3f05cb1e4bb8b1beb6c8f019e1d7af7091d55079..c2258f9e842266e105cb3fb0f1a6a2af09392fea 100644 (file)
@@ -374,8 +374,8 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item)
        dirname = folder_item_get_path(&ritem->item);
        template = g_strconcat(dirname, G_DIR_SEPARATOR_S,
                        RSSYL_TMP_TEMPLATE, NULL);
-       if ((fd = mkstemp(template)) < 0) {
-               g_warning("Couldn't mkstemp('%s'), not adding message!\n", template);
+       if ((fd = g_mkstemp(template)) < 0) {
+               g_warning("Couldn't g_mkstemp('%s'), not adding message!\n", template);
                g_free(template);
                return;
        }