]> granicus.if.org Git - apache/commitdiff
Can't figure out why we allocate len+2 bytes here. Len+1 should be enough.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 5 Feb 2013 21:32:51 +0000 (21:32 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 5 Feb 2013 21:32:51 +0000 (21:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442759 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 4783f95de642c94409197b03fa358576aa71bef6..b6a83275fbaea83c7e1618d172f1e6dc3a591618 100644 (file)
@@ -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;