diff options
author | Russ Cox <[email protected]> | 2011-02-19 21:17:55 -0500 |
---|---|---|
committer | Russ Cox <[email protected]> | 2011-02-19 21:17:55 -0500 |
commit | cf4b1ad90bcaeeb0c8458098c87948f61d408f94 (patch) | |
tree | b6385b1d72af5a3e634b94b318fb7e43644493af /usertests.c | |
parent | 9c4fe7ba105c0430c90179fd1e93c3d439a8cbd5 (diff) | |
download | xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.tar.gz xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.tar.bz2 xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.zip |
xv6: formatting, cleanup, rev5 (take 2)
Diffstat (limited to 'usertests.c')
-rw-r--r-- | usertests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usertests.c b/usertests.c index 9a83591..296731a 100644 --- a/usertests.c +++ b/usertests.c @@ -1445,11 +1445,11 @@ bigargtest(void) ppid = getpid(); pid = fork(); if(pid == 0){ - char *args[32]; + char *args[32+1]; int i; - for(i = 0; i < 32-1; i++) + for(i = 0; i < 32; i++) args[i] = "bigargs test: failed\n "; - args[32-1] = 0; + args[32] = 0; printf(stdout, "bigarg test\n"); exec("echo", args); printf(stdout, "bigarg test ok\n"); |