summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-03-08 16:23:32 +0000
committerjh <jh@FreeBSD.org>2010-03-08 16:23:32 +0000
commit2fa9397b046be3607f32abee6b4071040f1ec527 (patch)
treeeae71bed760a24c42bee3c641a6be3f49557409e /usr.bin
parent91112f5ed192d618cf598d60813b675752451954 (diff)
downloadFreeBSD-src-2fa9397b046be3607f32abee6b4071040f1ec527.zip
FreeBSD-src-2fa9397b046be3607f32abee6b4071040f1ec527.tar.gz
Pass the correct size to memset().
PR: bin/128094 Submitted by: Henning Petersen MFC after: 1 week
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