summaryrefslogtreecommitdiff
path: root/debian/patches/foomatic-rip-read-multiple-input-files.patch
blob: 30dc65c84dace1f4f2e994d3302547a8156dfb8c (plain)
1
2
3
4
5
6
7
8
9
10
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] == '-')