Subject: Re: garbage at sockaddr_in.sin_zero
To: Shin'ichiro TAYA <>
From: Peter Seebach <>
List: current-users
Date: 10/22/2000 00:38:49
In message <>, "Shin'ichiro TAYA" writes:
>I'm going to submit a fix for this(bzero(&in, sizeof(in))). But before
>submit, I want to clarify it's a bug of PSM code or bug of NetBSD.

Please use
	memset(&in, sizeof(in), 0);
because bzero (and indeed, all the b* functions) are local Berkeley color.

I wouldn't have minded seeing a memzero in C99, but there isn't one, and
memset works everywhere.