From: Michael R Sweet Date: Fri, 15 Nov 2024 16:55:07 +0000 (-0500) Subject: Fix make-and-model whitespace trimming (Issue #1096) X-Git-Tag: v2.4.12~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cc470c8d95df40f32e8a401b2946886c91b03d1;p=thirdparty%2Fcups.git Fix make-and-model whitespace trimming (Issue #1096) --- diff --git a/CHANGES.md b/CHANGES.md index d7e1f26e9e..7415d45402 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD) ------------------------------------ - Fixed a compressed file error handling bug (Issue #1070) +- Fixed a bug in the make-and-model whitespace trimming code (Issue #1096) - Fixed the default User-Agent string. - Fixed a recursion issue in `ippReadIO`. diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index a6163a0e1f..a3198a7951 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3293,6 +3293,8 @@ _ppdCreateFromIPP2( mptr --; if (*mptr == ' ') *mptr = '\0'; + else + break; } if (!make[0])