diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 10:15:07 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 10:15:07 +0200 |
commit | 86eb8ea6bbbf031d71cf0fa58f468cd3ddc4e7f3 (patch) | |
tree | d1bce67f94620239e83258e7cc040b13702aac77 /sys/src/9/port/sysproc.c | |
parent | 8d196aeec728fea0450c0b42db114127e85d64e0 (diff) |
kernel: change vmemchr() length argument to ulong and simplify
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index e755bcf5a..597398cb9 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -390,7 +390,7 @@ sysexec(va_list list) if(((uintptr)argp&(BY2PG-1)) < BY2WD) validaddr((uintptr)argp, BY2WD, 0); validaddr((uintptr)a, 1, 0); - nbytes += ((char*)vmemchr(a, 0, 0x7FFFFFFF) - a) + 1; + nbytes += ((char*)vmemchr(a, 0, ~0) - a) + 1; nargs++; } ssize = BY2WD*(nargs+1) + ((nbytes+(BY2WD-1)) & ~(BY2WD-1)); |