diff options
-rw-r--r-- | test/test_limits.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_limits.c b/test/test_limits.c index e2b5285f77..70b8098f2f 100644 --- a/test/test_limits.c +++ b/test/test_limits.c @@ -124,8 +124,8 @@ main(int argc, char *argv[]) perror("gethostbyname"); exit(1); } - bzero(&sin, sizeof(sin)); - bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length); + memset(&sin, sizeof(sin)); + memcpy((char *)&sin.sin_addr, he->h_addr, he->h_length); sin.sin_family = he->h_addrtype; sin.sin_port = htons(port); |