From: Christophe Jaillet Date: Tue, 5 Feb 2013 21:32:51 +0000 (+0000) Subject: Can't figure out why we allocate len+2 bytes here. Len+1 should be enough. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4fe482804972da21deae61591a69959c9e0672f;p=thirdparty%2Fapache%2Fhttpd.git Can't figure out why we allocate len+2 bytes here. Len+1 should be enough. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442759 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 4783f95de64..b6a83275fba 100644 --- a/server/util.c +++ b/server/util.c @@ -753,7 +753,7 @@ AP_DECLARE(char *) ap_getword_nulls(apr_pool_t *atrans, const char **line, static char *substring_conf(apr_pool_t *p, const char *start, int len, char quote) { - char *result = apr_palloc(p, len + 2); + char *result = apr_palloc(p, len + 1); char *resp = result; int i;