summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fd.c')
-rw-r--r--fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fd.c b/fd.c
index 3d3a863..4ee9a3e 100644
--- a/fd.c
+++ b/fd.c
@@ -330,7 +330,7 @@ MakeConnection(const char *server, short port, int report,
debug(1, (stderr, "gethostbyname failed for %s\n", server));
panic("Can't open connection to Server");
}
- bcopy((char *) hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
+ memcpy(&sin.sin_addr, hp->h_addr, hp->h_length);
}
sin.sin_family = AF_INET;