aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nscd/nscd_getgr_r.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5222504..6cdfa8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-28 H.J. Lu <hjl@gnu.org>
+
+ * nscd/nscd_getgr_r.c (nscd_getgr_r): Don't count the alloca'ed
+ memory for buffer.
+
1999-08-27 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/netpacket/packet.h: Update from 2.3.15
diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c
index 5ca1630..eb71705 100644
--- a/nscd/nscd_getgr_r.c
+++ b/nscd/nscd_getgr_r.c
@@ -180,7 +180,7 @@ nscd_getgr_r (const char *key, size_t keylen, request_type type,
vec[1].iov_len = gr_resp.gr_name_len + gr_resp.gr_passwd_len;
total_len += gr_resp.gr_name_len + gr_resp.gr_passwd_len;
- buflen -= total_len;
+ buflen -= gr_resp.gr_name_len + gr_resp.gr_passwd_len;
/* Get this data. */
if (__readv (sock, vec, 2) != total_len)