From edeb1f74498db67636f231e8313cc56d4ff112ec Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 3 Jul 2003 13:48:04 +1000 Subject: - markus@cvs.openbsd.org 2003/06/29 12:44:38 [sshconnect.c] memset 0, not \0; andrushock@korovino.net --- sshconnect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sshconnect.c') diff --git a/sshconnect.c b/sshconnect.c index 364a62281..40d22800f 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.146 2003/06/28 16:23:06 deraadt Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.147 2003/06/29 12:44:38 markus Exp $"); #include @@ -246,7 +246,7 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr, fdsetsz = howmany(sockfd + 1, NFDBITS) * sizeof(fd_mask); fdset = (fd_set *)xmalloc(fdsetsz); - memset(fdset, '\0', fdsetsz); + memset(fdset, 0, fdsetsz); FD_SET(sockfd, fdset); tv.tv_sec = timeout; tv.tv_usec = 0; -- cgit v1.2.3