From: Fabian Keil Date: Mon, 26 May 2014 10:48:07 +0000 (+0000) Subject: Resize an array in parse_http_request() to the appropriate size X-Git-Tag: v_3_0_22~142 X-Git-Url: http://www.privoxy.org/gitweb/%40proxy-info-url%40?a=commitdiff_plain;h=e77697a135fda9b9d45c06997e0cfc0d154976a6;p=privoxy.git Resize an array in parse_http_request() to the appropriate size --- diff --git a/urlmatch.c b/urlmatch.c index 14de337b..57c538ea 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.79 2013/11/24 14:25:55 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.80 2013/11/24 14:47:45 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -489,7 +489,7 @@ static int unknown_method(const char *method) jb_err parse_http_request(const char *req, struct http_request *http) { char *buf; - char *v[10]; /* XXX: Why 10? We should only need three. */ + char *v[3]; int n; jb_err err;