diff options
author | Joe Orton <jorton@apache.org> | 2002-11-28 08:35:26 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2002-11-28 08:35:26 +0000 |
commit | a089d73200eb67195939bb494600f969c28876e8 (patch) | |
tree | e094cb4c8d82a7eb8d4d03ad7486ebd24c8cbeb4 /test/testpoll.c | |
parent | 079f9aff71ce241aa472545d474658f82bf568d1 (diff) | |
download | apr-a089d73200eb67195939bb494600f969c28876e8.tar.gz |
Ensure that buffers passed to strcmp are NUL-terminated.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testpoll.c')
-rw-r--r-- | test/testpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testpoll.c b/test/testpoll.c index 5757597e2..2b917eab0 100644 --- a/test/testpoll.c +++ b/test/testpoll.c @@ -121,7 +121,7 @@ static void recv_msg(apr_socket_t **sockarray, int which, apr_pool_t *p, CuTest *tc) { apr_size_t buflen = 5; - char *buffer = apr_pcalloc(p, sizeof(char) * buflen); + char *buffer = apr_pcalloc(p, sizeof(char) * (buflen + 1)); apr_sockaddr_t *recsa; apr_status_t rv; |