Permalink
Browse files

I can't do math; fix bug introduced in 5a9761

  • Loading branch information...
1 parent 215a9ce commit 549c62cc1caafe4f8ac8b2a40eca6e098d322489 @aclements aclements committed Sep 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 exec.c
View
@@ -61,7 +61,7 @@ exec(char *path, char **argv)
for(argc = 0; argv[argc]; argc++) {
if(argc >= MAXARG)
goto bad;
- sp = (sp - strlen(argv[argc]) + 1) & ~3;
+ sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
goto bad;
ustack[3+argc] = sp;

0 comments on commit 549c62c

Please sign in to comment.