summaryrefslogtreecommitdiff
path: root/nscd/nscd_getgr_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-30 19:07:08 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-30 19:07:08 +0000
commit74bced63c5cea0a1fcbd58f7b23a5dcbf02e6018 (patch)
treea1343a04a391b2f19904d7a14bfbd7c1ecdf9785 /nscd/nscd_getgr_r.c
parentfcb8e79c9d92e725f2e35c0f7c0666058ecf0b6c (diff)
downloadglibc-74bced63c5cea0a1fcbd58f7b23a5dcbf02e6018.tar.gz
Update.
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.
Diffstat (limited to 'nscd/nscd_getgr_r.c')
-rw-r--r--nscd/nscd_getgr_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd_getgr_r.c b/nscd/nscd_getgr_r.c
index 5ca1630880..eb717056ea 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)