]> sjero.net Git - wget/commitdiff
[svn] Fix the check whether a new header needs to be allocated.
authorhniksic <devnull@localhost>
Wed, 20 Apr 2005 20:15:05 +0000 (13:15 -0700)
committerhniksic <devnull@localhost>
Wed, 20 Apr 2005 20:15:05 +0000 (13:15 -0700)
By FUJISHIMA Satsuki.

src/ChangeLog
src/http.c

index 5d93f603359426dcfb8998dc305868c3584d46c2..7327a4bde5fad5db3c17e718ab5c04b746d40e24 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-20  FUJISHIMA Satsuki  <sf@FreeBSD.org>
+
+       * http.c (request_set_header): Fix the check whether a new header
+       needs to be allocated.
+
 2005-04-18  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (base64_encode): Use the parameter order that makes more
index 19ba3a8314cdd3c45c391abefd82834e9c6a17ce..b233e0ef3aad9dd616187744ff032b66418c23b5 100644 (file)
@@ -257,7 +257,7 @@ request_set_header (struct request *req, char *name, char *value,
 
   /* Install new header. */
 
-  if (req->hcount >= req->hcount)
+  if (req->hcount >= req->hcapacity)
     {
       req->hcapacity <<= 1;
       req->headers = xrealloc (req->headers,