From a6bdeabc26bdecd87867f79f05bc77a469a12bc3 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 1 Jul 2011 03:07:21 +0000 Subject: [PATCH] Fix memset usage. --- usr.sbin/sdpd/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/sdpd/server.c b/usr.sbin/sdpd/server.c index bac58dcd90ef..77fa26156756 100644 --- a/usr.sbin/sdpd/server.c +++ b/usr.sbin/sdpd/server.c @@ -1,4 +1,4 @@ -/* $NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $ */ +/* $NetBSD: server.c,v 1.10 2011/07/01 03:07:21 joerg Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -58,7 +58,7 @@ */ #include -__RCSID("$NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $"); +__RCSID("$NetBSD: server.c,v 1.10 2011/07/01 03:07:21 joerg Exp $"); #include #include @@ -98,7 +98,7 @@ server_init(server_t *srv, char const *control, char const *sgroup) assert(srv != NULL); assert(control != NULL); - memset(srv, 0, sizeof(srv)); + memset(srv, 0, sizeof(*srv)); FD_ZERO(&srv->fdset); srv->sgroup = sgroup;