Author: akv
Date: 2010-12-30 01:31:11 +0100 (Thu, 30 Dec 2010)
New Revision: 3734

Modified:
   trunk/src/rs-tethered-shooting.c
Log:
Fixed warning from tmpnam().

Modified: trunk/src/rs-tethered-shooting.c
===================================================================
--- trunk/src/rs-tethered-shooting.c    2010-12-30 00:15:47 UTC (rev 3733)
+++ trunk/src/rs-tethered-shooting.c    2010-12-30 00:31:11 UTC (rev 3734)
@@ -461,7 +461,7 @@
        append_status(t,_("Downloading and adding image.\n"));
        char tmp_name[L_tmpnam];
        char *tmp_name_ptr;
-       tmp_name_ptr = tmpnam(tmp_name);
+       tmp_name_ptr = g_build_filename(g_get_tmp_dir(), 
g_strdup_printf("rs-tether-%d.tmp", g_random_int()), NULL);
 
        if (NULL == tmp_name_ptr)
                return GP_ERROR;


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to