summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 222f64c..0a9ca59 100644
--- a/exec.c
+++ b/exec.c
@@ -62,6 +62,9 @@ exec(char *path, char **argv)
sp = sz;
argp = sz - arglen - 4*(argc+1);
+ // XXX rtm: does the following code work if the
+ // arguments &c do not fit in one page?
+
// Copy argv strings and pointers to stack.
*(uint*)(mem+argp-spbottom + 4*argc) = 0; // argv[argc]
for(i=argc-1; i>=0; i--){