summaryrefslogtreecommitdiff
path: root/debian/patches/foomatic-rip-read-multiple-input-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/foomatic-rip-read-multiple-input-files.patch')
-rw-r--r--debian/patches/foomatic-rip-read-multiple-input-files.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/patches/foomatic-rip-read-multiple-input-files.patch b/debian/patches/foomatic-rip-read-multiple-input-files.patch
new file mode 100644
index 0000000..30dc65c
--- /dev/null
+++ b/debian/patches/foomatic-rip-read-multiple-input-files.patch
@@ -0,0 +1,11 @@
+--- a/foomaticrip.c
++++ b/foomaticrip.c
+@@ -1383,7 +1383,7 @@
+ dstrcpyf(filelist, "<STDIN>");
+
+ /* Check filelist */
+- p = strtok(filelist->data, " ");
++ p = strtok(strdup(filelist->data), " ");
+ while (p) {
+ if (strcmp(p, "<STDIN>") != 0) {
+ if (p[0] == '-')