summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 980c4c7..5951519 100644
--- a/common.c
+++ b/common.c
@@ -278,7 +278,7 @@ SetUpConnectionSocket(int iport, void (*connectionFunc) (int))
if (hp == NULL)
panic("No address for our host");
- bcopy((char *) hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
+ memcpy(&sin.sin_addr, hp->h_addr, hp->h_length);
}
/* new code -- INADDR_ANY should be better than using the name of the
host machine. The host machine may have several different network