From bd39955ecc4848d79fc361cfba51cd74b37b94de Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 21 Aug 2007 20:01:11 +0000 Subject: [PATCH] ARGMAX -> MAXARGS --- sysfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysfile.c b/sysfile.c index fd28002..87d163c 100644 --- a/sysfile.c +++ b/sysfile.c @@ -262,12 +262,12 @@ sys_link(void) return link(old, new); } -#define ARGMAX 10 +#define MAXARGS 20 int sys_exec(void) { - char *path, *argv[ARGMAX]; + char *path, *argv[MAXARGS]; int i; uint uargv, uarg; @@ -275,7 +275,7 @@ sys_exec(void) return -1; memset(argv, 0, sizeof argv); for(i=0;; i++){ - if(i >= ARGMAX) + if(i >= MAXARGS) return -1; if(fetchint(cp, uargv+4*i, (int*)&uarg) < 0) return -1;