Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 21:28:56 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229210 - stable/9/usr.sbin/bluetooth/sdpd
Message-ID:  <201201012128.q01LSujY031665@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201012128.q01LSujY031665>