]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/file.c
Fix unsigned char comparison to use "& 255" since the (unsigned char)
[thirdparty/cups.git] / cups / file.c
index 2d637533275ae51dc697fde1b97b8905e21c3a39..4456787d0cfa62ca1debf678a8fbda48f73aa3b2 100644 (file)
@@ -1421,7 +1421,7 @@ cups_fill(cups_file_t *fp)                /* I - CUPS file */
       }
 
       if (bytes < 10 || fp->buf[0] != 0x1f ||
-          (unsigned char)fp->buf[1] != 0x8b ||
+          (fp->buf[1] & 255) != 0x8b ||
           fp->buf[2] != 8 || (fp->buf[3] & 0xe0) != 0)
       {
        /*