From: Michael R Sweet Date: Fri, 15 Nov 2024 16:54:01 +0000 (-0500) Subject: Fix make-and-model whitespace trimming (Issue #1096) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1f619435c6ab349b69dda3cde322564ea1cccab;p=thirdparty%2Fcups.git Fix make-and-model whitespace trimming (Issue #1096) --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 65dcbbc396..1a918257b8 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3286,6 +3286,8 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ mptr --; if (*mptr == ' ') *mptr = '\0'; + else + break; } if (!make[0])