summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 18:20:12 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:14:45 -0700
commit9b9f7c3cacc1d220962fab1b910c6d76e2cd8087 (patch)
treeeadfc8ac2e15dcdf111bbb25e065eef3b9fdf817 /fd.c
parent5425131a498cdab54fbcfbae4991b22ebfa793ee (diff)
downloadxscope-9b9f7c3cacc1d220962fab1b910c6d76e2cd8087.tar.gz
Convert remaining bcopy() calls to memcpy()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
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;