From: Christophe Jaillet Date: Wed, 6 Feb 2013 08:17:53 +0000 (+0000) Subject: Change bzero/bcopy into memset/memcpy X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a1cd4f6a72eb23c85da7276996ba86eca64858d;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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);