This commit is contained in:
rsc 2007-08-28 02:39:40 +00:00
parent fa74a74984
commit c1bfbfa2f7

2
exec.c
View file

@ -72,7 +72,7 @@ exec(char *path, char **argv)
// Initialize stack.
sp = sz;
argp = sz - arglen;
argp = sz - arglen - 4*(argc+1);
// Copy argv strings and pointers to stack.
*(uint*)(mem+argp + 4*argc) = 0; // argv[argc]