From 6932d3de6970be51aac39f77506f99a4b53b4dbd Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 17 Dec 2011 19:26:03 +0000 Subject: In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as the length argument to memset, but the size of the object pointed to. MFC after: 1 week --- usr.sbin/bluetooth/sdpd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bluetooth/sdpd/server.c b/usr.sbin/bluetooth/sdpd/server.c index 816c6f5..fa04758 100644 --- a/usr.sbin/bluetooth/sdpd/server.c +++ b/usr.sbin/bluetooth/sdpd/server.c @@ -73,7 +73,7 @@ server_init(server_p srv, char const *control) assert(srv != NULL); assert(control != NULL); - memset(srv, 0, sizeof(srv)); + memset(srv, 0, sizeof(*srv)); /* Open control socket */ if (unlink(control) < 0 && errno != ENOENT) { -- cgit v1.1