1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Fix the check whether a new header needs to be allocated.

By FUJISHIMA Satsuki.
This commit is contained in:
hniksic 2005-04-20 13:15:05 -07:00
parent d40d3dd38d
commit 85c143a2a5
2 changed files with 6 additions and 1 deletions

View 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

View 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,