diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2013-02-06 09:17:53 +0100 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2013-02-06 09:17:53 +0100 |
commit | 54c9816667adcf3a2903f484bbb5804d4e46aa5e (patch) | |
tree | f599b3cf9d4d75d67326bdd58a1441e3d4fb73fe /test | |
parent | Can't figure out why we allocate len+2 bytes here. Len+1 should be enough. (diff) | |
download | apache2-54c9816667adcf3a2903f484bbb5804d4e46aa5e.tar.xz apache2-54c9816667adcf3a2903f484bbb5804d4e46aa5e.zip |
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
Diffstat (limited to 'test')
-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); |