projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40500f
)
Patch by Stewart Brodie to terminate the string array correctly
author
Glenn L McGrath
<bug1@ihug.co.nz>
Wed, 8 Jan 2003 03:26:47 +0000
(
03:26
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Wed, 8 Jan 2003 03:26:47 +0000
(
03:26
-0000)
debianutils/run_parts.c
patch
|
blob
|
history
diff --git
a/debianutils/run_parts.c
b/debianutils/run_parts.c
index 34e702ef83f98901eb3f2e8596e4911a3158af6f..a6ad81096d24f26771c173f2347aac045db0b3fe 100644
(file)
--- 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));
}