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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to