summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-07-08 17:46:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-07-08 17:46:47 +0000
commit8d9d23ec26b72162942c4c2fff2c8b0d26bc9ab3 (patch)
treea34dd4538e59e470244530356bb596d2a149c65f /sys/dev
parent9ef486037a1093d48bcf55d23d88f4bf398a6b75 (diff)
Fix thinko. Okay millert@
Uncovered by gcc 3.0, since the bad code does have unpredictable behavior.
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 4f6eb19f3a7..a7e84b9fc0d 100644
--- a/sys/dev/ic/dpt.c
+++ b/sys/dev/ic/dpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dpt.c,v 1.2 2001/03/25 06:19:38 csapuntz Exp $ */
+/* $OpenBSD: dpt.c,v 1.3 2001/07/08 17:46:46 espie Exp $ */
/* $NetBSD: dpt.c,v 1.12 1999/10/23 16:26:33 ad Exp $ */
/*-
@@ -381,7 +381,7 @@ dpt_init(sc, intrstr)
for (i = 0; ei->ei_model[i] != ' ' && i < 7; i++)
model[i] = ei->ei_model[i];
for (j = 0; ei->ei_suffix[j] != ' ' && j < 7; j++)
- model[i++] = ei->ei_model[i];
+ model[i++] = ei->ei_suffix[j];
model[i] = '\0';
/* Find the cannonical name for the board */