summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-02-25 00:26:09 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-02-25 00:26:09 +0000
commit44d7fc4e5f67e6d2f2b7682b8e85df2523f76448 (patch)
tree41d4201e352b0fa3e8fbf2a5506f28630c469ccf /sys
parent03e46a6366485a0127ba004bb62f770f1d88344a (diff)
fix two off by ones
credit to Yichen Xie's bounds checker ok mickey@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ami.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 9075a10c3e7..a877fd414e8 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.19 2002/07/03 21:13:06 aaron Exp $ */
+/* $OpenBSD: ami.c,v 1.20 2003/02/25 00:26:08 tedu Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -364,9 +364,9 @@ ami_attach(sc)
sc->sc_maxunits = AMI_BIG_MAX_LDRIVES;
bcopy (pi->api_fwver, sc->sc_fwver, 16);
- sc->sc_fwver[16] = '\0';
+ sc->sc_fwver[15] = '\0';
bcopy (pi->api_biosver, sc->sc_biosver, 16);
- sc->sc_biosver[16] = '\0';
+ sc->sc_biosver[15] = '\0';
sc->sc_channels = pi->api_channels;
sc->sc_targets = pi->api_fcloops;
sc->sc_memory = letoh16(pi->api_ramsize);