]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/cups-deviced.c
Remove dependency on zlib headers outside of libcups.
[thirdparty/cups.git] / scheduler / cups-deviced.c
index 85ecda167a5425dcf97974f882bad7a9163062b0..77703b98330bbf8f985871033c4dc3aa929d3b9a 100644 (file)
@@ -1,10 +1,11 @@
 /*
  * Device scanning mini-daemon for CUPS.
  *
- * Copyright 2007-2014 by Apple Inc.
- * Copyright 1997-2006 by Easy Software Products.
+ * Copyright © 2007-2018 by Apple Inc.
+ * Copyright © 1997-2006 by Easy Software Products.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -308,7 +309,7 @@ main(int  argc,                             /* I - Number of command-line args */
              break;
            }
          }
-         while (bpipe->ptr && memchr(bpipe->ptr, '\n', (size_t)(bpipe->end - bpipe->ptr)));
+         while (_cupsFilePeekAhead(bpipe, '\n'));
         }
     }