Subject: Re: garbage at sockaddr_in.sin_zero
To: Shin'ichiro TAYA <taya@sm.sony.co.jp>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 10/22/2000 00:38:49
In message <20001022143646L.taya@sm.sony.co.jp>, "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.

-s