diff options
author | jh <jh@FreeBSD.org> | 2010-03-15 16:39:52 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-03-15 16:39:52 +0000 |
commit | 39b00eecc9b2bc216744917b4579e8a5f2535a35 (patch) | |
tree | e690087afdf0c751a32378b1afba8ed648e11294 /usr.bin | |
parent | 58f37cedeebac85660095556ad1e6d88793b6e5a (diff) | |
download | FreeBSD-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.l | 2 |
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); } |