]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
stop response skip loop at nul in commandtops 1637/head
authorAizal Khan <aizumusheer2@gmail.com>
Wed, 1 Jul 2026 07:59:30 +0000 (13:29 +0530)
committerAizal Khan <aizumusheer2@gmail.com>
Wed, 1 Jul 2026 07:59:30 +0000 (13:29 +0530)
filter/commandtops.c

index c0c38945d03a8599e60ee6c1afc2bec995d5dfc0..c19b16d89463f9b8024d84834716e3085ec932cc 100644 (file)
@@ -318,7 +318,7 @@ auto_configure(ppd_file_t *ppd,             /* I - PPD file */
        else
          break;
 
-      for (bufptr = buffer; isspace(*bufptr & 255) || iscntrl(*bufptr & 255);
+      for (bufptr = buffer; *bufptr && (isspace(*bufptr & 255) || iscntrl(*bufptr & 255));
           bufptr ++);
 
       if (bufptr > buffer)