diff options
author | Jim Jagielski <jim@apache.org> | 2013-03-11 16:38:39 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2013-03-11 16:38:39 +0000 |
commit | 51cdbaeefd2f0b442e3555e9db1198dd254d80ff (patch) | |
tree | 6ba1ff6f28d0da10ac18580d5826db405f6a0739 /test | |
parent | a689b6b197cfd35f861be1e78ade3ae83a87aac8 (diff) | |
download | httpd-51cdbaeefd2f0b442e3555e9db1198dd254d80ff.tar.gz |
Merge r1442865, r1442759, r1442326, r1442309, r1448171, r1418556, r1448453, r1425771, r1425772, r1425775 from trunk:
Change bzero/bcopy into memset/memcpy
PR 54346
Can't figure out why we allocate len+2 bytes here. Len+1 should be enough.
Fix valgrind warning about uninitialized memory in argument to semctl
PR: 53690
Submitted by: Mikhail T. <mi+apache aldan algebra com>
fix valgrind warnings about uninitialized memory in syscall arguments
This is useful info for mod_status ;)
Add some __attribute__ for automatic format checking.
Correct one catch in sed0.c.
Correct some spelling.
Replace strdup by ap_malloc to ensure a proper error message if out-of-memory.
While there, only allocate memory for the string part we actually use.
PR: 54345
Exit with error message if out of mem
htdbm, htpasswd: print error message if out of memory
PR: 54345
Submitted by: jailletc36, sf, sf, jim, jailletc36, minfrin, sf, sf, sf
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1455225 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); |