summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2001-03-18 23:20:58 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2001-03-18 23:20:58 +0000
commit113870247b2b2dc0188609c0ba7018db321d3961 (patch)
tree5f4e3bd17cf9591d148b02dceb38b7e205eafd9a
parentab0190962393330008e61963b5ab9ea8970fbb51 (diff)
Fix machine detection bug.
-rw-r--r--arch/mips64/arc/identify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips64/arc/identify.c b/arch/mips64/arc/identify.c
index 4556418ac..297c81522 100644
--- a/arch/mips64/arc/identify.c
+++ b/arch/mips64/arc/identify.c
@@ -42,7 +42,7 @@ string_to_mach(const char *s)
{
int i;
- for (i = 0; i < sizeof (mach_table); i++) {
+ for (i = 0; i < (sizeof (mach_table) / sizeof (mach_table[0])); i++) {
if(!strcmp(s, mach_table[i].name))
return &mach_table[i];
}