diff --git a/src/ChangeLog b/src/ChangeLog index 5d93f603..7327a4bd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-20 FUJISHIMA Satsuki + + * http.c (request_set_header): Fix the check whether a new header + needs to be allocated. + 2005-04-18 Hrvoje Niksic * utils.c (base64_encode): Use the parameter order that makes more diff --git a/src/http.c b/src/http.c index 19ba3a83..b233e0ef 100644 --- a/src/http.c +++ b/src/http.c @@ -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,