diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-01-17 12:56:51 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-01-17 12:56:51 +0000 |
commit | 4a2e03c66c725785ce7921f25a8220ad3d7fee8a (patch) | |
tree | c44e344b249c497077c2af09a9cd014c38325373 | |
parent | b3acfdf7924e1be0066ad8dc0b0eb445ac7380f1 (diff) | |
download | glibc-4a2e03c66c725785ce7921f25a8220ad3d7fee8a.tar glibc-4a2e03c66c725785ce7921f25a8220ad3d7fee8a.tar.gz glibc-4a2e03c66c725785ce7921f25a8220ad3d7fee8a.tar.bz2 glibc-4a2e03c66c725785ce7921f25a8220ad3d7fee8a.zip |
* nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
* nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | nscd/nscd_getserv_r.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ 2007-01-17 Jakub Jelinek <jakub@redhat.com> + * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos. + * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove. 2007-01-17 Ulrich Drepper <drepper@redhat.com> diff --git a/nscd/nscd_getserv_r.c b/nscd/nscd_getserv_r.c index ea5dcedb88..87d3d31e2c 100644 --- a/nscd/nscd_getserv_r.c +++ b/nscd/nscd_getserv_r.c @@ -123,10 +123,10 @@ nscd_getserv_r (const char *crit, size_t critlen, const char *proto, if (((uintptr_t) aliases_len & (__alignof__ (*aliases_len) - 1)) != 0) { - uint32_t *tmp = alloca (hst_resp->h_aliases_cnt + uint32_t *tmp = alloca (serv_resp->s_aliases_cnt * sizeof (uint32_t)); aliases_len = memcpy (tmp, aliases_len, - hst_resp->h_aliases_cnt + serv_resp->s_aliases_cnt * sizeof (uint32_t)); } #endif |