diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2013-02-05 22:32:51 +0100 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2013-02-05 22:32:51 +0100 |
commit | 3f42fb8b497fdb06a2029f8b5123c34f1ce5f53d (patch) | |
tree | ac1361cd827b066ae5995dbf221a86a1bbebf870 | |
parent | Chop inappropriate detail from my recent CHANGES entry (diff) | |
download | apache2-3f42fb8b497fdb06a2029f8b5123c34f1ce5f53d.tar.xz apache2-3f42fb8b497fdb06a2029f8b5123c34f1ce5f53d.zip |
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
-rw-r--r-- | server/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/util.c b/server/util.c index 4783f95de6..b6a83275fb 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; |