git clone https://orangeshoelaces.net/git/ii.git
Author: Anselm R. Garbe on 01/28/2006
Committer: Anselm R. Garbe on 01/28/2006
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");