From b41049dc143a6b70e715c35dc2da94ae68b41447 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 3 Jul 2005 23:45:48 +0000 Subject: Fix memset() argument order. svn path=/trunk/; revision=4085 --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 0bdd0371..7cfb2cbf 100644 --- a/driver.c +++ b/driver.c @@ -1012,7 +1012,7 @@ static int do_session( struct addrinfo hints, *res; int error; - memset(&hints, sizeof(hints), 0); + memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_CANONNAME; -- cgit v1.2.3