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

Reply via email to