MFC r204872: Pass the correct size to memset().

PR:		bin/128094
This commit is contained in:
Jaakko Heinonen 2010-03-15 16:39:52 +00:00
parent 2173958d3e
commit 77d503efb1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=205171

View File

@ -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);
}