From 5adf425f5d741eac3c4243ef986409e027d05e47 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 1 Dec 2022 11:57:08 -0500 Subject: [PATCH] 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. --- cups/ppd-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2