Forget to set final argv entry to NULL, breaking sh.c amoung
authorEric Andersen <andersen@codepoet.org>
Sat, 9 Dec 2000 00:19:30 +0000 (00:19 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 9 Dec 2000 00:19:30 +0000 (00:19 -0000)
other things...

applets/busybox.c
busybox.c

index c8c060be7ca7d696cb628c8d45a0acfc45e962fb..8f27dfb8eace2121ff20e40235f1624423cf8b4c 100644 (file)
@@ -203,6 +203,7 @@ int busybox_main(int argc, char **argv)
        }
        while(index<=index2)
                *index++='\0';
+       argv[ps_index]=NULL;
 
        return (main(argc, argv));
 }
index c8c060be7ca7d696cb628c8d45a0acfc45e962fb..8f27dfb8eace2121ff20e40235f1624423cf8b4c 100644 (file)
--- 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));
 }