summaryrefslogtreecommitdiff
path: root/debian/patches/fixed-segfault-when-creating-logfile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fixed-segfault-when-creating-logfile.patch')
-rw-r--r--debian/patches/fixed-segfault-when-creating-logfile.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/fixed-segfault-when-creating-logfile.patch b/debian/patches/fixed-segfault-when-creating-logfile.patch
new file mode 100644
index 0000000..29a743f
--- /dev/null
+++ b/debian/patches/fixed-segfault-when-creating-logfile.patch
@@ -0,0 +1,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