summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-08-06 15:15:16 +0000
committerjsg <jsg@openbsd.org>2014-08-06 15:15:16 +0000
commit6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a (patch)
treec2f64fca9c90903b28e69181148965842f59625c
parenthttp POST support (diff)
downloadwireguard-openbsd-6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a.tar.xz
wireguard-openbsd-6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a.zip
fix an off by one
ok deraadt@
-rw-r--r--sys/arch/alpha/mcbus/mcbus.c4
1 files changed, 2 insertions, 2 deletions
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;
/*