]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
filter/pstops.c: Fix incorrect comparison size for %%PageResources
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 20 Apr 2023 07:39:42 +0000 (09:39 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 20 Apr 2023 07:39:42 +0000 (09:39 +0200)
Fixes #658

filter/pstops.c

index 5b7aeb5cd7d3bc66a6b6e893299a8c95e0b9c234..3b10ea221dec75c05e20edb76bed7737f9c2b225 100644 (file)
@@ -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: ...