diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2017-02-07 18:36:09 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2017-02-07 18:36:09 +0000 |
commit | a1d31503ac290edbb898a095850b38c056637239 (patch) | |
tree | 9461ed6feb0fc987e4b220ceaea778cc058670b5 /memcache | |
parent | 4199124c37be3d0ead3c3fb13c947e2ab7fb7d4a (diff) | |
download | libapr-a1d31503ac290edbb898a095850b38c056637239.tar.gz |
apr_memcache: reserve buffer space for trailing \0.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1782045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memcache')
-rw-r--r-- | memcache/apr_memcache.c | 2 |
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; |