summaryrefslogtreecommitdiff
path: root/sys/compat/linux
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/linux
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/linux')
-rw-r--r--sys/compat/linux/linux_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c
index b96be60a26b..ae096b470a5 100644
--- a/sys/compat/linux/linux_exec.c
+++ b/sys/compat/linux/linux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_exec.c,v 1.24 2005/12/30 19:46:55 miod Exp $ */
+/* $OpenBSD: linux_exec.c,v 1.25 2006/01/19 17:54:52 mickey Exp $ */
/* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */
/*-
@@ -485,7 +485,7 @@ linux_elf_probe(p, epp, itp, pos, os)
brand = elf32_check_brand(eh);
if (brand && strcmp(brand, "Linux"))
return (EINVAL);
- if (itp[0]) {
+ if (itp) {
if ((error = emul_find(p, NULL, linux_emul_path, itp, &bp, 0)))
return (error);
if ((error = copystr(bp, itp, MAXPATHLEN, &len)))