Add terminating NULL to argv[] list
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5055 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2797732a6e
commit
a123dd9628
@ -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).
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user