You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2013/02/05 22:32:51 UTC

svn commit: r1442759 - /httpd/httpd/trunk/server/util.c

Author: jailletc36
Date: Tue Feb  5 21:32:51 2013
New Revision: 1442759

URL: http://svn.apache.org/viewvc?rev=1442759&view=rev
Log:
Can't figure out why we allocate len+2 bytes here. Len+1 should be enough.

Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1442759&r1=1442758&r2=1442759&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Tue Feb  5 21:32:51 2013
@@ -753,7 +753,7 @@ AP_DECLARE(char *) ap_getword_nulls(apr_
 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;