diff options
author | Jeff Trawick <trawick@apache.org> | 2001-04-01 08:43:11 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-04-01 08:43:11 +0000 |
commit | 0cbbad489512375efbe3b9a26f87658672a60fa4 (patch) | |
tree | 491b60e26bba8687a17534b53f46dd5500a2436c /test/testsock.c | |
parent | b0b6455e136e6e9074087a4d2104366ced14187a (diff) | |
download | apr-0cbbad489512375efbe3b9a26f87658672a60fa4.tar.gz |
make sure that a program argument list is terminated with
a NULL element
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsock.c')
-rw-r--r-- | test/testsock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testsock.c b/test/testsock.c index 360c021c5..1fe21bc66 100644 --- a/test/testsock.c +++ b/test/testsock.c @@ -122,7 +122,7 @@ static int run_sendfile(apr_pool_t *context, int number) apr_proc_t proc2; apr_status_t s1; apr_status_t s2; - const char *args[3]; + const char *args[4]; fprintf(stdout, "Creating children to run network tests.......\n"); s1 = apr_procattr_create(&attr1, context); @@ -155,6 +155,7 @@ static int run_sendfile(apr_pool_t *context, int number) break; } } + args[3] = NULL; s2 = apr_proc_create(&proc2, "./sendfile", args, NULL, attr2, context); if (s1 != APR_SUCCESS || s2 != APR_SUCCESS) { |