diff options
| author | fvdl <fvdl@NetBSD.org> | 1998-10-04 09:40:09 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 1998-10-04 09:40:09 +0000 |
| commit | 19f71dc8fff8fd482f17c58c0f332a3eb8d1eaa7 (patch) | |
| tree | a2b0beabb43d36116faf3ccfd761cb424577e64a /sys/compat/linux/common/linux_exec_elf32.c | |
| parent | f10fec8d32e3ff3bf7775875b2b1abf0da7215ac (diff) | |
Fix wrong strncmp test.
Diffstat (limited to 'sys/compat/linux/common/linux_exec_elf32.c')
| -rw-r--r-- | sys/compat/linux/common/linux_exec_elf32.c | 4 |
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; } |
