summaryrefslogtreecommitdiff
path: root/sys/dev/ic/fxp.c
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-07 01:13:49 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-07 01:13:49 +0000
commit67920a3b797b97323d0e21e06e5166109945f7b8 (patch)
tree6b95f9e4682be88df55069e67a2a8d5c084f7c78 /sys/dev/ic/fxp.c
parent4f4fb09569c21321cf3884c9530fbfa1bf05b4ba (diff)
struct ucode.length should be in number of elements (u_int32_t), not
number of bytes. reported by Pyun YongHyeon, patch from mickey@, ok deraadt@
Diffstat (limited to 'sys/dev/ic/fxp.c')
-rw-r--r--sys/dev/ic/fxp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index 3dddc0b1e62..c457557ba53 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.59 2004/09/28 05:14:44 brad Exp $ */
+/* $OpenBSD: fxp.c,v 1.60 2004/11/07 01:13:48 dhartmei Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -1827,7 +1827,7 @@ const u_int32_t fxp_ucode_d101s[] = D101S_RCVBUNDLE_UCODE;
const u_int32_t fxp_ucode_d102[] = D102_B_RCVBUNDLE_UCODE;
const u_int32_t fxp_ucode_d102c[] = D102_C_RCVBUNDLE_UCODE;
-#define UCODE(x) sizeof(x), x
+#define UCODE(x) sizeof(x) / sizeof(u_int32_t), x
struct ucode {
u_int16_t revision;