apr_redis: reserve buffer space for trailing \0.
@@ -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;
