summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>1998-10-04 09:40:09 +0000
committerfvdl <fvdl@NetBSD.org>1998-10-04 09:40:09 +0000
commit19f71dc8fff8fd482f17c58c0f332a3eb8d1eaa7 (patch)
treea2b0beabb43d36116faf3ccfd761cb424577e64a /sys/compat/linux/common
parentf10fec8d32e3ff3bf7775875b2b1abf0da7215ac (diff)
Fix wrong strncmp test.
Diffstat (limited to 'sys/compat/linux/common')
-rw-r--r--sys/compat/linux/common/linux_exec_elf32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_exec_elf32.c b/sys/compat/linux/common/linux_exec_elf32.c
index 55f835398d9..32306137eb4 100644
--- a/sys/compat/linux/common/linux_exec_elf32.c
+++ b/sys/compat/linux/common/linux_exec_elf32.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_elf32.c,v 1.34 1998/10/04 00:02:32 fvdl Exp $ */
+/* $NetBSD: linux_exec_elf32.c,v 1.35 1998/10/04 09:40:09 fvdl Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -207,7 +207,7 @@ ELFNAME2(linux,signature)(p, epp, eh)
testp = (char *)notep;
testp[16] = '\0';
- if (strncmp(&testp[8], "linux", 5) != 0) {
+ if (!strncmp(&testp[8], "linux", 5) != 0) {
error = 0;
goto out3;
}