summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_exec.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-01-19 17:54:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-01-19 17:54:57 +0000
commit12fe641ea8c8836df2c10b83bf985c7021dcd54d (patch)
treeeff556a7cae59d77d97c185cc78947877d9c3b06 /sys/compat/svr4/svr4_exec.c
parent9f1866c3e0efe0c56d0d5387bcaf845852f74f56 (diff)
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/svr4/svr4_exec.c')
-rw-r--r--sys/compat/svr4/svr4_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_exec.c b/sys/compat/svr4/svr4_exec.c
index fdfe8756bc1..0f06a6ce105 100644
--- a/sys/compat/svr4/svr4_exec.c
+++ b/sys/compat/svr4/svr4_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_exec.c,v 1.14 2002/03/14 01:26:51 millert Exp $ */
+/* $OpenBSD: svr4_exec.c,v 1.15 2006/01/19 17:54:56 mickey Exp $ */
/* $NetBSD: svr4_exec.c,v 1.16 1995/10/14 20:24:20 christos Exp $ */
/*
@@ -126,7 +126,7 @@ svr4_elf_probe(p, epp, itp, pos, os)
int error;
size_t len;
- if (itp[0]) {
+ if (itp) {
if ((error = emul_find(p, NULL, svr4_emul_path, itp, &bp, 0)))
return (error);
if ((error = copystr(bp, itp, MAXPATHLEN, &len)))