summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2006-08-22 19:40:20 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2006-08-22 19:40:20 +0000
commit44c4d45107b5702be81e00ee39b2a0f543de2226 (patch)
tree17b947f1c064363a84d2a80312964634136ddbb6 /sys/arch
parent097b6f0707236a19146da4f887000a24a63f5951 (diff)
Same change as on i386: use a case-insensitive comparison when checking
for bogus SMBIOS strings. Fixes identification of millert@'s system.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/bios.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c
index 7b239746d23..48ee6fac8b8 100644
--- a/sys/arch/amd64/amd64/bios.c
+++ b/sys/arch/amd64/amd64/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.9 2006/07/17 23:45:11 fgsch Exp $ */
+/* $OpenBSD: bios.c,v 1.10 2006/08/22 19:40:19 tom Exp $ */
/*
* Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca>
*
@@ -217,7 +217,8 @@ fixstring(char *s)
int i;
for (i = 0; i < sizeof(smbios_uninfo)/sizeof(smbios_uninfo[0]); i++)
- if ((strncmp(s, smbios_uninfo[i], strlen(smbios_uninfo[i])))==0)
+ if ((strncasecmp(s, smbios_uninfo[i],
+ strlen(smbios_uninfo[i])))==0)
return NULL;
/*
* Remove leading and trailing whitespace