From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 1 Dec 2022 16:57:08 +0000 (-0500) Subject: Change strncmp parameter X-Git-Tag: v2.4.3~99^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5adf425f5d741eac3c4243ef986409e027d05e47;p=thirdparty%2Fcups.git Change strncmp parameter Either the parameter being passed should be 6, not 7, because of the null terminator in the string literal, or strcmp should be used instead. --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 594290a852..3da921d0a3 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -4160,7 +4160,7 @@ _ppdCreateFromIPP2( PRINTF_COLOROPTION("Gray16", _("Deep Gray"), CUPS_CSPACE_SW, 16) } - else if (!strcasecmp(keyword, "srgb_8") || !strncmp(keyword, "SRGB24", 7) || !strcmp(keyword, "color")) + else if (!strcasecmp(keyword, "srgb_8") || !strncmp(keyword, "SRGB24", 6) || !strcmp(keyword, "color")) { PRINTF_COLORMODEL