summaryrefslogtreecommitdiff
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1998-12-04 22:54:57 +0000
committerArchie Cobbs <archie@FreeBSD.org>1998-12-04 22:54:57 +0000
commit2127f26023a9be443e05b592b35c77b454ba8f77 (patch)
tree951cf624a9440f22eae605ca46c2e80246f1bf08 /sys/dev/dpt
parent790eeb2b519441c661126930cec65560727a8ec5 (diff)
Notes
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_control.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c
index ba4bec9c3cdb..b28fb672d1cf 100644
--- a/sys/dev/dpt/dpt_control.c
+++ b/sys/dev/dpt/dpt_control.c
@@ -36,7 +36,7 @@
* future.
*/
-#ident "$Id: dpt_control.c,v 1.8 1998/08/05 00:54:36 eivind Exp $"
+#ident "$Id: dpt_control.c,v 1.9 1998/09/15 08:33:31 gibbs Exp $"
#include "opt_dpt.h"
@@ -782,7 +782,8 @@ dpt_ioctl(dev_t dev, u_long cmd, caddr_t cmdarg, int flags, struct proc * p)
compat_softc.ha_npend = dpt->submitted_ccbs_count;
compat_softc.ha_active_jobs = dpt->waiting_ccbs_count;
strncpy(compat_softc.ha_fw_version,
- dpt->board_data.firmware, 4);
+ dpt->board_data.firmware,
+ sizeof(compat_softc.ha_fw_version));
compat_softc.ha_ccb = NULL;
compat_softc.ha_cblist = NULL;
compat_softc.ha_dev = NULL;