From 08cbaaf64097ded41af5b034374e35f047c6ba20 Mon Sep 17 00:00:00 2001 From: briggs Date: Sun, 23 Jun 1996 16:00:36 +0000 Subject: From scottr/NetBSD: Fix bounds check for fpu description array. --- sys/arch/mac68k/mac68k/fpu.c | 6 +++--- 1 file 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"; -- cgit v1.2.3