Pass the correct size to memset().

PR:		bin/128094
Submitted by:	Henning Petersen
MFC after:	1 week
This commit is contained in:
jh 2010-03-08 16:23:32 +00:00
parent 91112f5ed1
commit 2fa9397b04

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