diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-31 22:03:49 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-31 22:03:49 +0000 |
commit | 5945321e9d7a33915ac0ae6169c8741c1a49cd99 (patch) | |
tree | 8632b613a0bee0b364b48f301b2a90daf1d04591 /sys/arch/amiga/dev/grf_ul.c | |
parent | 019b23805ab7aedce2518c69605bf44af5e56091 (diff) |
from netbsd: fix bounds check (Klaus Klein)
Diffstat (limited to 'sys/arch/amiga/dev/grf_ul.c')
-rw-r--r-- | sys/arch/amiga/dev/grf_ul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amiga/dev/grf_ul.c b/sys/arch/amiga/dev/grf_ul.c index 919c074946f..63987adf885 100644 --- a/sys/arch/amiga/dev/grf_ul.c +++ b/sys/arch/amiga/dev/grf_ul.c @@ -1,4 +1,4 @@ -/* $NetBSD: grf_ul.c,v 1.10 1995/12/27 07:24:27 chopps Exp $ */ +/* $NetBSD: grf_ul.c,v 1.11 1996/01/28 20:06:15 chopps Exp $ */ #define UL_DEBUG /* @@ -471,7 +471,7 @@ grfulmatch(pdp, cfp, auxp) #ifdef ULOWELLCONSOLE if (amiga_realconfig == 0 || ulconunit != cfp->cf_unit) { #endif - if ((unsigned)ulowell_default_mon >= ulowell_mon_max) + if ((unsigned)ulowell_default_mon > ulowell_mon_max) ulowell_default_mon = 1; current_mon = ul_monitor_defs + ulowell_default_mon - 1; |