From 5a1cd4f6a72eb23c85da7276996ba86eca64858d Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Wed, 6 Feb 2013 08:17:53 +0000 Subject: [PATCH] Change bzero/bcopy into memset/memcpy PR 54346 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442865 13f79535-47bb-0310-9956-ffa450edef68 --- test/test_limits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_limits.c b/test/test_limits.c index e2b5285f77a..70b8098f2f9 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); -- 2.47.3