From owner-svn-src-all@FreeBSD.ORG Mon Mar 8 16:23:32 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B81B31065670; Mon, 8 Mar 2010 16:23:32 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A7A2A8FC20; Mon, 8 Mar 2010 16:23:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o28GNW6o043635; Mon, 8 Mar 2010 16:23:32 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o28GNWKf043633; Mon, 8 Mar 2010 16:23:32 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201003081623.o28GNWKf043633@svn.freebsd.org> From: Jaakko Heinonen Date: Mon, 8 Mar 2010 16:23:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204872 - head/usr.bin/xlint/lint1 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2010 16:23:32 -0000 Author: jh Date: Mon Mar 8 16:23:32 2010 New Revision: 204872 URL: http://svn.freebsd.org/changeset/base/204872 Log: Pass the correct size to memset(). PR: bin/128094 Submitted by: Henning Petersen MFC after: 1 week Modified: head/usr.bin/xlint/lint1/scan.l Modified: head/usr.bin/xlint/lint1/scan.l ============================================================================== --- head/usr.bin/xlint/lint1/scan.l Mon Mar 8 15:56:18 2010 (r204871) +++ head/usr.bin/xlint/lint1/scan.l Mon Mar 8 16:23:32 2010 (r204872) @@ -319,7 +319,7 @@ allocsb(void) if ((sb = malloc(sizeof (sbuf_t))) == NULL) nomem(); } - (void)memset(sb, 0, sizeof (sb)); + (void)memset(sb, 0, sizeof (*sb)); return (sb); }