From c1f619435c6ab349b69dda3cde322564ea1cccab Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 15 Nov 2024 11:54:01 -0500 Subject: [PATCH] Fix make-and-model whitespace trimming (Issue #1096) --- cups/ppd-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 65dcbbc39..1a918257b 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])