]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Bug fix for httpGetSubField() - the whitespace skipping code had 1 too
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 6 Mar 2001 14:57:00 +0000 (14:57 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 6 Mar 2001 14:57:00 +0000 (14:57 +0000)
many ;'s in it... :(

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@1613 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES.txt
cups/http.c

index 5dcec7cb7b6a38dbddfb65af05b80886ed0c1f77..42baae2901017b7bbb891c14a767b36b167715b0 100644 (file)
@@ -71,6 +71,8 @@ CHANGES IN CUPS V1.1.7
          which could block if insufficient entropy information
          had been collected by the kernel.  Now use
          /dev/urandom.
+       - Fixed a bug in the whitespace skipping code in
+         httpGetSubField().
 
 
 CHANGES IN CUPS V1.1.6-3
index 89f7335e3915ebb8c73baef0e9290e90d4dcb309..bff9780a9eafc65eb882db7902a9c816da3628f4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: http.c,v 1.81 2001/02/28 14:48:07 mike Exp $"
+ * "$Id: http.c,v 1.82 2001/03/06 14:57:00 mike Exp $"
  *
  *   HTTP routines for the Common UNIX Printing System (CUPS) scheduler.
  *
@@ -790,7 +790,7 @@ httpGetSubField(http_t       *http, /* I - HTTP data */
     * Skip leading whitespace...
     */
 
-    while (isspace(*fptr));
+    while (isspace(*fptr))
       fptr ++;
 
     if (*fptr == ',')
@@ -825,7 +825,7 @@ httpGetSubField(http_t       *http, /* I - HTTP data */
 
     fptr ++;
 
-    while (isspace(*fptr));
+    while (isspace(*fptr))
       fptr ++;
 
     if (*fptr == '\"')
@@ -2038,5 +2038,5 @@ http_upgrade(http_t *http)        /* I - HTTP data */
 
 
 /*
- * End of "$Id: http.c,v 1.81 2001/02/28 14:48:07 mike Exp $".
+ * End of "$Id: http.c,v 1.82 2001/03/06 14:57:00 mike Exp $".
  */