From: Zdenek Dohnal Date: Thu, 20 Apr 2023 07:39:42 +0000 (+0200) Subject: filter/pstops.c: Fix incorrect comparison size for %%PageResources X-Git-Tag: v2.4.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eaedeea1e5a77a7a280b0da3add7b3479d0ca1e;p=thirdparty%2Fcups.git filter/pstops.c: Fix incorrect comparison size for %%PageResources Fixes #658 --- diff --git a/filter/pstops.c b/filter/pstops.c index 5b7aeb5cd7..3b10ea221d 100644 --- a/filter/pstops.c +++ b/filter/pstops.c @@ -1397,7 +1397,7 @@ copy_page(cups_file_t *fp, /* I - File to read from */ !strncmp(line, "%%PageMedia:", 12) || !strncmp(line, "%%PageOrientation:", 18) || !strncmp(line, "%%PageProcessColors:", 20) || - !strncmp(line, "%%PageRequirements:", 18) || + !strncmp(line, "%%PageRequirements:", 19) || !strncmp(line, "%%PageResources:", 16)) { /* @@ -1429,7 +1429,7 @@ copy_page(cups_file_t *fp, /* I - File to read from */ * %%PageProcessColors: ... */ } - else if (!strncmp(line, "%%PageRequirements:", 18)) + else if (!strncmp(line, "%%PageRequirements:", 19)) { /* * %%PageRequirements: ...