From: Glenn L McGrath Date: Wed, 8 Jan 2003 03:26:47 +0000 (-0000) Subject: Patch by Stewart Brodie to terminate the string array correctly X-Git-Tag: 1_00_pre1~253 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a69fd2ecf6211ed1ce0de659fd7474e89f05d834;p=oweals%2Fbusybox.git Patch by Stewart Brodie to terminate the string array correctly --- diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 34e702ef8..a6ad81096 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c @@ -88,7 +88,6 @@ int run_parts_main(int argc, char **argv) * Called once for every argument. */ args = xrealloc(args, (argcount + 2) * (sizeof(char *))); args[argcount++] = optarg; - args[argcount] = 0; break; default: show_usage(); @@ -101,5 +100,7 @@ int run_parts_main(int argc, char **argv) } args[0] = argv[optind]; + args[argcount] = 0; + return(run_parts(args, test_mode)); }