]> granicus.if.org Git - apache/commitdiff
Change bzero/bcopy into memset/memcpy
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 6 Feb 2013 08:17:53 +0000 (08:17 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 6 Feb 2013 08:17:53 +0000 (08:17 +0000)
PR 54346

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1442865 13f79535-47bb-0310-9956-ffa450edef68

test/test_limits.c

index e2b5285f77a2a3933736f5df4e30e561b956d4f8..70b8098f2f9a139cec216d779a135fbf1f617434 100644 (file)
@@ -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);