From: jsg Date: Wed, 6 Aug 2014 15:15:16 +0000 (+0000) Subject: fix an off by one X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a;p=openbsd fix an off by one ok deraadt@ --- diff --git a/sys/arch/alpha/mcbus/mcbus.c b/sys/arch/alpha/mcbus/mcbus.c index 3fbf2d70870..580e6cf85df 100644 --- a/sys/arch/alpha/mcbus/mcbus.c +++ b/sys/arch/alpha/mcbus/mcbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcbus.c,v 1.2 2012/12/05 23:20:10 deraadt Exp $ */ +/* $OpenBSD: mcbus.c,v 1.3 2014/08/06 15:15:16 jsg Exp $ */ /* $NetBSD: mcbus.c,v 1.19 2007/03/04 05:59:11 christos Exp $ */ /* @@ -155,7 +155,7 @@ mcbusattach(parent, self, aux) bcs[mcbus_primary.mcbus_bcache] : "Unknown"); mbp->mcbus_types[0] = MCBUS_TYPE_RES; - for (mid = 1; mid <= MCBUS_MID_MAX; ++mid) + for (mid = 1; mid < MCBUS_MID_MAX; ++mid) mbp->mcbus_types[mid] = MCBUS_TYPE_UNK; /*