summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriggs <briggs@cvs.openbsd.org>1996-06-23 16:00:36 +0000
committerbriggs <briggs@cvs.openbsd.org>1996-06-23 16:00:36 +0000
commit08cbaaf64097ded41af5b034374e35f047c6ba20 (patch)
tree3c9f7e0f3ef40b0342b2fa945ba827ddf920fe83
parent61a9bf8b107547d28ee865b302750b211228cbc0 (diff)
From scottr/NetBSD:
Fix bounds check for fpu description array.
-rw-r--r--sys/arch/mac68k/mac68k/fpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mac68k/mac68k/fpu.c b/sys/arch/mac68k/mac68k/fpu.c
index 1289af17ce9..ff060fb13e4 100644
--- a/sys/arch/mac68k/mac68k/fpu.c
+++ b/sys/arch/mac68k/mac68k/fpu.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: fpu.c,v 1.3 1996/05/26 18:36:18 briggs Exp $ */
-/* $NetBSD: fpu.c,v 1.15 1996/05/05 17:19:04 briggs Exp $ */
+/* $OpenBSD: fpu.c,v 1.4 1996/06/23 16:00:35 briggs Exp $ */
+/* $NetBSD: fpu.c,v 1.16 1996/06/11 02:56:22 scottr Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -89,7 +89,7 @@ fpu_attach(parent, self, args)
char *descr;
fpu_type = fpu_probe();
- if ((0 <= fpu_type) && (fpu_type <= 2))
+ if ((0 <= fpu_type) && (fpu_type <= 3))
descr = fpu_descr[fpu_type];
else
descr = "unknown type";