diff options
Diffstat (limited to 'nscd/nscd_getserv_r.c')
-rw-r--r-- | nscd/nscd_getserv_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |