[epiphany/tmp-gnome-2-32: 15/31] ephy-file-helpers: use g_mkstemp instead of mkstemp



commit b391ba93530b569300e3759ba9f42d4ea01b0ec0
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Sat May 15 20:35:29 2010 -0500

    ephy-file-helpers: use g_mkstemp instead of mkstemp
    
    This allows the "XXXXXX" token to be anywhere in the tmpl string.
    
    Bug #302986

 lib/ephy-file-helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index adddc84..495164d 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -229,7 +229,7 @@ ephy_file_tmp_filename (const char *base,
 	int fd;
 	char *name = g_strdup (base);
 
-	fd = mkstemp (name);
+	fd = g_mkstemp (name);
 
 	if (fd != -1)
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]