svn commit: r228655 - head/usr.sbin/bluetooth/sdpd
Dimitry Andric
dim at FreeBSD.org
Sat Dec 17 19:26:04 UTC 2011
Author: dim
Date: Sat Dec 17 19:26:03 2011
New Revision: 228655
URL: http://svn.freebsd.org/changeset/base/228655
Log:
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
Modified:
head/usr.sbin/bluetooth/sdpd/server.c
Modified: head/usr.sbin/bluetooth/sdpd/server.c
==============================================================================
--- head/usr.sbin/bluetooth/sdpd/server.c Sat Dec 17 19:22:24 2011 (r228654)
+++ head/usr.sbin/bluetooth/sdpd/server.c Sat Dec 17 19:26:03 2011 (r228655)
@@ -73,7 +73,7 @@ server_init(server_p srv, char const *co
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) {
More information about the svn-src-all
mailing list