oops
This commit is contained in:
parent
fa74a74984
commit
c1bfbfa2f7
1 changed files with 1 additions and 1 deletions
2
exec.c
2
exec.c
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue