From c11b31bc8414b6486f14a0bc1d6105bc04d5f94c Mon Sep 17 00:00:00 2001 From: Sean Kau Date: Mon, 9 Sep 2019 22:25:42 -0700 Subject: [PATCH] Fix argument representation for raw queue debug mesaage. vfprintf was segfaulting because it was trying to interpret the %s with a missing argument. --- filter/foomatic-rip/foomaticrip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/foomatic-rip/foomaticrip.c b/filter/foomatic-rip/foomaticrip.c index a21b1a5ee..ed4ae1d00 100644 --- a/filter/foomatic-rip/foomaticrip.c +++ b/filter/foomatic-rip/foomaticrip.c @@ -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; -- 2.47.2