diff options
author | 2013-01-08 02:26:09 +0000 | |
---|---|---|
committer | 2013-01-08 02:26:09 +0000 | |
commit | e17b29d39b4632b7daf718c334c168b07e37d08a (patch) | |
tree | 5460b583cb1f64697e60ba2b8e3a0076467ff4d6 /lib/libc/gen/exec.c | |
parent | Correctly signal SIGSEGV, instead of SIGBUS, for faults caused by access to (diff) | |
download | wireguard-openbsd-e17b29d39b4632b7daf718c334c168b07e37d08a.tar.xz wireguard-openbsd-e17b29d39b4632b7daf718c334c168b07e37d08a.zip |
More int's that should be size_t for strlen() use
ok millert
Diffstat (limited to 'lib/libc/gen/exec.c')
-rw-r--r-- | lib/libc/gen/exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c index 0bd0b58fdbb..bc3301f47e9 100644 --- a/lib/libc/gen/exec.c +++ b/lib/libc/gen/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.19 2012/03/21 23:20:35 matthew Exp $ */ +/* $OpenBSD: exec.c,v 1.20 2013/01/08 02:26:09 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -131,7 +131,8 @@ int execvpe(const char *name, char *const *argv, char *const *envp) { char **memp; - int cnt, lp, ln, len; + int cnt; + size_t lp, ln, len; char *p; int eacces = 0; char *bp, *cur, *path, buf[MAXPATHLEN]; |