summaryrefslogtreecommitdiff
path: root/memcache/apr_memcache.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2017-02-07 18:36:09 +0000
committerYann Ylavic <ylavic@apache.org>2017-02-07 18:36:09 +0000
commitf15c99127ab80cf5022edd79d5ace34a49125995 (patch)
tree9461ed6feb0fc987e4b220ceaea778cc058670b5 /memcache/apr_memcache.c
parent9c09168f52400255f0f09186535edc037ea8d1dc (diff)
downloadapr-f15c99127ab80cf5022edd79d5ace34a49125995.tar.gz
apr_memcache: reserve buffer space for trailing \0.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1782045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memcache/apr_memcache.c')
-rw-r--r--memcache/apr_memcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache/apr_memcache.c b/memcache/apr_memcache.c
index 65247f87e..8cd1e1d0e 100644
--- a/memcache/apr_memcache.c
+++ b/memcache/apr_memcache.c
@@ -356,7 +356,7 @@ mc_conn_construct(void **conn_, void *params, apr_pool_t *pool)
return rv;
}
- conn->buffer = apr_palloc(conn->p, BUFFER_SIZE);
+ conn->buffer = apr_palloc(conn->p, BUFFER_SIZE + 1);
conn->blen = 0;
conn->ms = ms;