diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-18 21:07:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-18 21:07:28 +0000 |
commit | 9f3731cf7f8f1d1b4718fdbeae2ca5d46bbc6950 (patch) | |
tree | 1cbff2cd7ef38c777aa3a6c713b1513e038f2483 /nscd/grpcache.c | |
parent | 0396de518e3ed6b4bebea10026ca5c7aaafa783f (diff) | |
download | glibc-9f3731cf7f8f1d1b4718fdbeae2ca5d46bbc6950.tar.gz glibc-9f3731cf7f8f1d1b4718fdbeae2ca5d46bbc6950.tar.xz glibc-9f3731cf7f8f1d1b4718fdbeae2ca5d46bbc6950.zip |
* nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
length. Patch by Ivan Gyurdiev <ivg2@cornell.edu>. * debug/confstr_chk.c: New file. * debug/getdomainname_chk.c: New file. * debug/getgroups_chk.c: New file. * debug/gethostname_chk.c: New file. * debug/getlogin_r_chk.c: New file. * debug/ttyname_r_chk.c: New file. * posix/bits/unistd.h: Add definitions for new debug versions. * debug/tst-chk1.c: Add tests for new functions. * debug/Versions: Export new functions. * debug/Makefile (routines): Add new files. * stdlib/bits/stdlib.h: Fix typo. * manual/Makefile (libc/index.html): Depend on dir-add.texi.
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r-- | nscd/grpcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 5d327f360c..c938554b25 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -167,7 +167,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req, char *gr_name; char *cp; const size_t key_len = strlen (key); - const size_t buf_len = 3 + sizeof (grp->gr_gid) + key_len + 1; + const size_t buf_len = 3 * sizeof (grp->gr_gid) + key_len + 1; char *buf = alloca (buf_len); ssize_t n; size_t cnt; |