summaryrefslogtreecommitdiff
path: root/debian/patches/0110-fixed-segfault-when-creating-logfile.patch
blob: 29a743f019155b9c300e5ed6d79aa1927da8def7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: foomatic-rip: Fixed segfault when creating log file (Bug #1206).
Author: Till Kamppeter <till.kamppeter@gmail.com>
Last-Update: 2014-04-25
--- a/foomaticrip.c
+++ b/foomaticrip.c
@@ -1197,7 +1197,8 @@
         debug = 1;
 
     if (debug) {
-	int fd = mkstemp (LOG_FILE "-XXXXXX.log");
+	sprintf(tmp, "%s-XXXXXX.log", LOG_FILE);
+	int fd = mkstemps (tmp, 4);
 	if (fd != -1)
 	    logh = fdopen(fd, "w");
 	else