From 91029ccefe8f5876d635c3e0b9330d239f68dc49 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Mon, 8 Mar 2010 16:23:32 +0000 Subject: [PATCH] Pass the correct size to memset(). PR: bin/128094 Submitted by: Henning Petersen MFC after: 1 week --- usr.bin/xlint/lint1/scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l index ea5a2c57bdcd..05f4ed7984af 100644 --- a/usr.bin/xlint/lint1/scan.l +++ b/usr.bin/xlint/lint1/scan.l @@ -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); }