From be2f36f875efc1e5cde6b6bda90f5fe8e4b1c7ff Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 28 Jan 2006 22:34:27 +0200 Subject: [PATCH] applied Kai's s/bcopy/memcpy patch --- ii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ii.c b/ii.c index e5edafa..24bbd5e 100644 --- a/ii.c +++ b/ii.c @@ -172,7 +172,7 @@ static int tcpopen(unsigned short port) exit(EXIT_FAILURE); } sin.sin_family = AF_INET; - bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length); + memcpy(&sin.sin_addr, hp->h_addr, hp->h_length); sin.sin_port = htons(port); if((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("ii: cannot create socket");