applied Kai's s/bcopy/memcpy patch
This commit is contained in:
parent
3504249d87
commit
be2f36f875
2
ii.c
2
ii.c
@ -172,7 +172,7 @@ static int tcpopen(unsigned short port)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
sin.sin_family = AF_INET;
|
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);
|
sin.sin_port = htons(port);
|
||||||
if((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
|
if((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
|
||||||
perror("ii: cannot create socket");
|
perror("ii: cannot create socket");
|
||||||
|
Loading…
Reference in New Issue
Block a user