mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
* nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
* nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
This commit is contained in:
parent
b3acfdf792
commit
4a2e03c66c
@ -1,5 +1,7 @@
|
|||||||
2007-01-17 Jakub Jelinek <jakub@redhat.com>
|
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.
|
* sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
|
||||||
|
|
||||||
2007-01-17 Ulrich Drepper <drepper@redhat.com>
|
2007-01-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
@ -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))
|
if (((uintptr_t) aliases_len & (__alignof__ (*aliases_len) - 1))
|
||||||
!= 0)
|
!= 0)
|
||||||
{
|
{
|
||||||
uint32_t *tmp = alloca (hst_resp->h_aliases_cnt
|
uint32_t *tmp = alloca (serv_resp->s_aliases_cnt
|
||||||
* sizeof (uint32_t));
|
* sizeof (uint32_t));
|
||||||
aliases_len = memcpy (tmp, aliases_len,
|
aliases_len = memcpy (tmp, aliases_len,
|
||||||
hst_resp->h_aliases_cnt
|
serv_resp->s_aliases_cnt
|
||||||
* sizeof (uint32_t));
|
* sizeof (uint32_t));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user