From fb74f324b647a7ae6fbfb0fd699f498791db34cf Mon Sep 17 00:00:00 2001 From: jmmv Date: Thu, 5 Feb 2004 16:11:31 +0000 Subject: [PATCH] Use the correct size when clearing an array. --- usr.sbin/wsmoused/wsmoused.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c index 54b147db58fd..32784c5169c2 100644 --- a/usr.sbin/wsmoused/wsmoused.c +++ b/usr.sbin/wsmoused/wsmoused.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmoused.c,v 1.20 2004/02/05 16:07:51 jmmv Exp $ */ +/* $NetBSD: wsmoused.c,v 1.21 2004/02/05 16:11:31 jmmv Exp $ */ /* * Copyright (c) 2002, 2003, 2004 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 2002, 2003\n" "The NetBSD Foundation, Inc. All rights reserved.\n"); -__RCSID("$NetBSD: wsmoused.c,v 1.20 2004/02/05 16:07:51 jmmv Exp $"); +__RCSID("$NetBSD: wsmoused.c,v 1.21 2004/02/05 16:11:31 jmmv Exp $"); #endif /* not lint */ #include @@ -408,7 +408,7 @@ attach_modes(char *list) int count; /* Attach all requested modes */ - (void)memset(&Modes, 0, sizeof(struct mode_bootstrap) * MAX_MODES); + (void)memset(&Modes, 0, sizeof(struct mode_bootstrap *) * MAX_MODES); for (count = 0, (p = strtok_r(list, " ", &last)); p; (p = strtok_r(NULL, " ", &last))) { if (attach_mode(p))