From 96ee89a3c594bf3df706b0709f764b0b57762522 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 13 Oct 2008 14:00:37 +0000 Subject: [PATCH] Fix wrong memset; PR bin/39733 from Henning Petersen. --- usr.bin/xlint/lint1/scan.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index eadabe8fd4de..7e3bd1e665bc 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -1,5 +1,5 @@ %{ -/* $NetBSD: scan.l,v 1.40 2008/09/26 22:52:24 matt Exp $ */ +/* $NetBSD: scan.l,v 1.41 2008/10/13 14:00:37 dholland Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: scan.l,v 1.40 2008/09/26 22:52:24 matt Exp $"); +__RCSID("$NetBSD: scan.l,v 1.41 2008/10/13 14:00:37 dholland Exp $"); #endif #include @@ -324,7 +324,7 @@ allocsb(void) } else { sb = xmalloc(sizeof (sbuf_t)); } - (void)memset(sb, 0, sizeof (sb)); + (void)memset(sb, 0, sizeof (*sb)); return (sb); }