* nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
authorjakub <jakub>
Wed, 17 Jan 2007 12:56:50 +0000 (12:56 +0000)
committerjakub <jakub>
Wed, 17 Jan 2007 12:56:50 +0000 (12:56 +0000)
ChangeLog
nscd/nscd_getserv_r.c

index 99098ab..7b64c33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index ea5dced..87d3d31 100644 (file)
@@ -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