diff options
author | 2006-01-19 17:54:47 +0000 | |
---|---|---|
committer | 2006-01-19 17:54:47 +0000 | |
commit | 335c12dedbccf96c9cab566a194fb72d2d6fcc27 (patch) | |
tree | 653f5604ebf4339f251028acbdd75a7ea761b236 /sys/compat/netbsd/netbsd_exec.c | |
parent | ENAMETOOLONG if path too long; ok miod pedro (diff) | |
download | wireguard-openbsd-335c12dedbccf96c9cab566a194fb72d2d6fcc27.tar.xz wireguard-openbsd-335c12dedbccf96c9cab566a194fb72d2d6fcc27.zip |
redo (w/ proper changes everywhere ;):
take interp[MAXPATHLEN] off the stack. from mickey, ok otto
while here, switch above from malloc to pool, remove stupid casts
tedu@ miod@ ok
Diffstat (limited to 'sys/compat/netbsd/netbsd_exec.c')
-rw-r--r-- | sys/compat/netbsd/netbsd_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/netbsd/netbsd_exec.c b/sys/compat/netbsd/netbsd_exec.c index d6c7f9e2910..65df435fbe3 100644 --- a/sys/compat/netbsd/netbsd_exec.c +++ b/sys/compat/netbsd/netbsd_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_exec.c,v 1.11 2004/04/15 00:22:42 tedu Exp $ */ +/* $OpenBSD: netbsd_exec.c,v 1.12 2006/01/19 17:54:54 mickey Exp $ */ /* $NetBSD: svr4_exec.c,v 1.16 1995/10/14 20:24:20 christos Exp $ */ /* @@ -94,7 +94,7 @@ netbsd_elf64_probe(p, epp, itp, pos, os) if (elf64_os_pt_note(p, epp, eh, "NetBSD\0", 7, 4)) return (EINVAL); - if (itp[0]) { + if (itp) { if ((error = emul_find(p, NULL, netbsd_emul_path, itp, &bp, 0))) return (error); if ((error = copystr(bp, itp, MAXPATHLEN, &len))) |