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
This commit is contained in:
Dimitry Andric 2011-12-17 19:26:03 +00:00
parent b7de4fa0d3
commit 98e0f284ba

View File

@ -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) {