summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2001-01-26 21:58:56 +0000
committerbouyer <bouyer@NetBSD.org>2001-01-26 21:58:56 +0000
commit05b5119cdf9e490a1dd3de2a522cea2ffa4db434 (patch)
treede2a44810ccd20dea65e29adbfd3f2d649ca4efa /sys/dev
parentfacd2d0feb41f2847462d76ed664fc4c7a1b0802 (diff)
Fix a 4 byte ovferflow in an array:
resel[sizeof(load_dsa) / sizeof(load_dsa[0])] is 25, not 24.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/siopvar_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/siopvar_common.h b/sys/dev/ic/siopvar_common.h
index 244bdd75231..bb2ed285d54 100644
--- a/sys/dev/ic/siopvar_common.h
+++ b/sys/dev/ic/siopvar_common.h
@@ -1,4 +1,4 @@
-/* $NetBSD: siopvar_common.h,v 1.9 2000/11/14 18:21:02 thorpej Exp $ */
+/* $NetBSD: siopvar_common.h,v 1.10 2001/01/26 21:58:56 bouyer Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@@ -76,7 +76,7 @@ struct siop_xfer_common {
struct siop_xfer {
struct siop_xfer_common tables;
/* u_int32_t resel[sizeof(load_dsa) / sizeof(load_dsa[0])]; */
- u_int32_t resel[24];
+ u_int32_t resel[25];
} __attribute__((__packed__));
/*