summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-05-31 04:35:39 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-05-31 04:35:39 +0000
commit86983a57f24b283e8c897385690d9f2cd7be9da6 (patch)
treeb9a0074df681a70b4c74813eaf476ad94c3c2bca /sys/dev
parent58eed529cc6f50f1ac5d2d2c949bd0a3a1374937 (diff)
avoid going outside array bounds
ok krw@ deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/dpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/dpt.c b/sys/dev/ic/dpt.c
index 983f630241d..7c97ac4b101 100644
--- a/sys/dev/ic/dpt.c
+++ b/sys/dev/ic/dpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dpt.c,v 1.35 2014/12/19 22:44:58 guenther Exp $ */
+/* $OpenBSD: dpt.c,v 1.36 2017/05/31 04:35:38 jsg Exp $ */
/* $NetBSD: dpt.c,v 1.12 1999/10/23 16:26:33 ad Exp $ */
/*-
@@ -324,7 +324,7 @@ dpt_init(sc, intrstr)
* dpt0: interrupting at irq 10
* dpt0: 64 queued commands, 1 channel(s), adapter on ID(s) 7
*/
- for (i = 0; ei->ei_vendor[i] != ' ' && i < 8; i++)
+ for (i = 0; ei->ei_vendor[i] != ' ' && i < 7; i++)
;
ei->ei_vendor[i] = '\0';