summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysfile.c')
-rw-r--r--sysfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysfile.c b/sysfile.c
index 87e508b..d0de779 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -399,16 +399,16 @@ sys_exec(void)
{
char *path, *argv[MAXARG];
int i;
- uint uargv, uarg;
+ uint64 uargv, uarg;
- if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
+ if(argstr(0, &path) < 0 || argaddr(1, &uargv) < 0){
return -1;
}
memset(argv, 0, sizeof(argv));
for(i=0;; i++){
if(i >= NELEM(argv))
return -1;
- if(fetchint(uargv+4*i, (int*)&uarg) < 0)
+ if(fetchaddr(uargv+sizeof(uint64)*i, (uint64*)&uarg) < 0)
return -1;
if(uarg == 0){
argv[i] = 0;