svn commit: r229210 - stable/9/usr.sbin/bluetooth/sdpd
Dimitry Andric
dim at FreeBSD.org
Sun Jan 1 21:28:56 UTC 2012
Author: dim
Date: Sun Jan 1 21:28:55 2012
New Revision: 229210
URL: http://svn.freebsd.org/changeset/base/229210
Log:
MFC r228655:
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.
Modified:
stable/9/usr.sbin/bluetooth/sdpd/server.c
Directory Properties:
stable/9/usr.sbin/bluetooth/sdpd/ (props changed)
Modified: stable/9/usr.sbin/bluetooth/sdpd/server.c
==============================================================================
--- stable/9/usr.sbin/bluetooth/sdpd/server.c Sun Jan 1 21:21:57 2012 (r229209)
+++ stable/9/usr.sbin/bluetooth/sdpd/server.c Sun Jan 1 21:28:55 2012 (r229210)
@@ -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-stable-9
mailing list