From d84517fefb6c54f2cb4de3a290c90fb8a74deae7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 6 Dec 1996 15:33:32 +0000 Subject: memset --- libexec/telnetd/utility.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/telnetd') diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index ee7695b3496..e6746badd9f 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utility.c,v 1.4 1996/12/06 15:26:28 deraadt Exp $ */ +/* $OpenBSD: utility.c,v 1.5 1996/12/06 15:33:31 deraadt Exp $ */ /* $NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $ */ /* @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: utility.c,v 1.4 1996/12/06 15:26:28 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: utility.c,v 1.5 1996/12/06 15:33:31 deraadt Exp $"; #endif #endif /* not lint */ @@ -102,7 +102,7 @@ stilloob(s) do { FD_ZERO(&excepts); FD_SET(s, &excepts); - bzero(&timeout, sizeof timeout); + memset((char *)&timeout, 0, sizeof timeout); value = select(s+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout); } while ((value == -1) && (errno == EINTR)); -- cgit v1.2.3