diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-26 22:28:21 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-26 22:28:21 +0000 |
commit | 029bbeb3dbf2c51e86fe5a67424a356fb2d17aa1 (patch) | |
tree | 2ef42a4ef2b2103067dd9dd3a81a7d8ca5f0ff4d /apps | |
parent | 61fccacd853fbdc872deab875012b67fd85240be (diff) | |
download | px4-firmware-029bbeb3dbf2c51e86fe5a67424a356fb2d17aa1.tar.gz px4-firmware-029bbeb3dbf2c51e86fe5a67424a356fb2d17aa1.tar.bz2 px4-firmware-029bbeb3dbf2c51e86fe5a67424a356fb2d17aa1.zip |
Add terminating NULL to argv[] list
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5055 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/ChangeLog.txt | 4 | ||||
-rwxr-xr-x | apps/netutils/thttpd/thttpd_cgi.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index 20895f07b..6c151ae50 100755 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -280,3 +280,7 @@ configuration (from Richard Cochran). 6.22 2012-xx-xx Gregory Nutt <gnutt@nuttx.org> + + * apps/netutils/thttpd/thttpd_cgi.c: Missing NULL in argv[] + list (contributed by Kate). + diff --git a/apps/netutils/thttpd/thttpd_cgi.c b/apps/netutils/thttpd/thttpd_cgi.c index 3d2eb57b8..0c23a2587 100755 --- a/apps/netutils/thttpd/thttpd_cgi.c +++ b/apps/netutils/thttpd/thttpd_cgi.c @@ -988,7 +988,7 @@ errout: int cgi(httpd_conn *hc) { char arg[16]; - char *argv[1]; + char *argv[2]; pid_t child; int retval = ERROR; @@ -1019,6 +1019,7 @@ int cgi(httpd_conn *hc) snprintf(arg, 16, "%p", hc); /* task_create doesn't handle binary arguments. */ argv[0] = arg; + argv[1] = NULL; #ifndef CONFIG_CUSTOM_STACK child = task_create("CGI child", CONFIG_THTTPD_CGI_PRIORITY, |