]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Fix argument representation for raw queue debug mesaage. 153/head
authorSean Kau <skau@chromium.org>
Tue, 10 Sep 2019 05:25:42 +0000 (22:25 -0700)
committerSean Kau <skau@chromium.org>
Tue, 10 Sep 2019 06:03:12 +0000 (23:03 -0700)
vfprintf was segfaulting because it was trying to interpret
the %s with a missing argument.

filter/foomatic-rip/foomaticrip.c

index a21b1a5eee84fa92add82657b8f82e30cbe0a12a..ed4ae1d009c44b3323049c6e516ab64f01034c9b 100644 (file)
@@ -1105,7 +1105,7 @@ int main(int argc, char** argv)
         if (dontparse == 2) {
             /* Raw queue, simply pass the input into the postpipe (or to STDOUT
                when there is no postpipe) */
-            _log("Raw printing, executing \"cat %s\"\n\n");
+            _log("Raw printing, executing \"cat %%s\"\n\n");
             snprintf(tmp, 1024, "cat %s", postpipe->data);
             run_system_process("raw-printer", tmp);
             continue;