summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorRuss Cox <[email protected]>2011-02-28 09:32:20 -0500
committerRuss Cox <[email protected]>2011-02-28 09:32:20 -0500
commitc5f538735191330cc112485548e6dc46317eea83 (patch)
tree92175f170c56754ed5df2d48b3bb3fae8b56d1b4 /syscall.c
parenta6cd7509c4cb30a7d58aa2797dc979daaa795fd0 (diff)
downloadxv6-labs-c5f538735191330cc112485548e6dc46317eea83.tar.gz
xv6-labs-c5f538735191330cc112485548e6dc46317eea83.tar.bz2
xv6-labs-c5f538735191330cc112485548e6dc46317eea83.zip
fixes from Peter Froehlich
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index 16c5b47..f6550a1 100644
--- a/syscall.c
+++ b/syscall.c
@@ -57,7 +57,7 @@ argptr(int n, char **pp, int size)
if(argint(n, &i) < 0)
return -1;
- if((uint)i >= proc->sz || (uint)i+size >= proc->sz)
+ if((uint)i >= proc->sz || (uint)i+size > proc->sz)
return -1;
*pp = (char*)i;
return 0;