svn commit: r205171 - stable/8/usr.bin/xlint/lint1
Jaakko Heinonen
jh at FreeBSD.org
Mon Mar 15 16:39:52 UTC 2010
Author: jh
Date: Mon Mar 15 16:39:52 2010
New Revision: 205171
URL: http://svn.freebsd.org/changeset/base/205171
Log:
MFC r204872: Pass the correct size to memset().
PR: bin/128094
Modified:
stable/8/usr.bin/xlint/lint1/scan.l
Directory Properties:
stable/8/usr.bin/xlint/ (props changed)
Modified: stable/8/usr.bin/xlint/lint1/scan.l
==============================================================================
--- stable/8/usr.bin/xlint/lint1/scan.l Mon Mar 15 16:06:52 2010 (r205170)
+++ stable/8/usr.bin/xlint/lint1/scan.l Mon Mar 15 16:39:52 2010 (r205171)
@@ -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);
}
More information about the svn-src-all
mailing list