From 74bced63c5cea0a1fcbd58f7b23a5dcbf02e6018 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 30 Aug 1999 19:07:08 +0000 Subject: Update. 1999-08-28 H.J. Lu * nscd/nscd_getgr_r.c (nscd_getgr_r): Don't count the alloca'ed memory for buffer. --- nscd/nscd_getgr_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nscd') 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) -- cgit v1.1