From: Eric Andersen Date: Sat, 9 Dec 2000 00:19:30 +0000 (-0000) Subject: Forget to set final argv entry to NULL, breaking sh.c amoung X-Git-Tag: 0_48~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8c28fd78495311c985690157eebb06300069ba26;p=oweals%2Fbusybox.git Forget to set final argv entry to NULL, breaking sh.c amoung other things... --- diff --git a/applets/busybox.c b/applets/busybox.c index c8c060be7..8f27dfb8e 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -203,6 +203,7 @@ int busybox_main(int argc, char **argv) } while(index<=index2) *index++='\0'; + argv[ps_index]=NULL; return (main(argc, argv)); } diff --git a/busybox.c b/busybox.c index c8c060be7..8f27dfb8e 100644 --- a/busybox.c +++ b/busybox.c @@ -203,6 +203,7 @@ int busybox_main(int argc, char **argv) } while(index<=index2) *index++='\0'; + argv[ps_index]=NULL; return (main(argc, argv)); }