summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-03-15 16:39:52 +0000
committerjh <jh@FreeBSD.org>2010-03-15 16:39:52 +0000
commit39b00eecc9b2bc216744917b4579e8a5f2535a35 (patch)
treee690087afdf0c751a32378b1afba8ed648e11294 /usr.bin
parent58f37cedeebac85660095556ad1e6d88793b6e5a (diff)
downloadFreeBSD-src-39b00eecc9b2bc216744917b4579e8a5f2535a35.zip
FreeBSD-src-39b00eecc9b2bc216744917b4579e8a5f2535a35.tar.gz
MFC r204872: Pass the correct size to memset().
PR: bin/128094
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/lint1/scan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l
index ea5a2c5..05f4ed7 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);
}
OpenPOWER on IntegriCloud