From 36a89b7d7adc9c967d6aeb6c9e13f72b1985639c Mon Sep 17 00:00:00 2001 From: sos Date: Mon, 5 Oct 1998 12:40:42 +0000 Subject: In linux_newuname bzero the right type of struct (linux_newuname_t). --- sys/compat/linux/linux_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 620489e..9fdd923 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.43 1998/09/23 14:50:26 jkh Exp $ + * $Id: linux_misc.c,v 1.44 1998/09/24 13:25:43 jkh Exp $ */ #include @@ -745,7 +745,7 @@ linux_newuname(struct proc *p, struct linux_newuname_args *args) #ifdef DEBUG printf("Linux-emul(%d): newuname(*)\n", p->p_pid); #endif - bzero(&linux_newuname, sizeof(struct linux_newuname_args)); + bzero(&linux_newuname, sizeof(struct linux_newuname_t)); strncpy(linux_newuname.sysname, ostype, 64); strncpy(linux_newuname.nodename, hostname, 64); strncpy(linux_newuname.release, osrelease, 64); -- cgit v1.1