From 8c28fd78495311c985690157eebb06300069ba26 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 9 Dec 2000 00:19:30 +0000 Subject: [PATCH] Forget to set final argv entry to NULL, breaking sh.c amoung other things... --- applets/busybox.c | 1 + busybox.c | 1 + 2 files changed, 2 insertions(+) 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)); }