From 113870247b2b2dc0188609c0ba7018db321d3961 Mon Sep 17 00:00:00 2001 From: Keith M Wesolowski Date: Sun, 18 Mar 2001 23:20:58 +0000 Subject: Fix machine detection bug. --- arch/mips64/arc/identify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3