diff options
author | Yann Ylavic <ylavic@apache.org> | 2017-02-07 18:29:17 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2017-02-07 18:29:17 +0000 |
commit | 9c09168f52400255f0f09186535edc037ea8d1dc (patch) | |
tree | 340a6d92961fb3fb90adcdccc73de331bb96ad1d /redis | |
parent | 9441dde01ec90640587b698fc932d2d2bcb2efb1 (diff) | |
download | apr-9c09168f52400255f0f09186535edc037ea8d1dc.tar.gz |
apr_redis: reserve buffer space for trailing \0.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1782042 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redis')
-rw-r--r-- | redis/apr_redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/apr_redis.c b/redis/apr_redis.c index dff1502b1..776927366 100644 --- a/redis/apr_redis.c +++ b/redis/apr_redis.c @@ -372,7 +372,7 @@ rc_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->rs = rs; |