diff options
author | Andreas Schwab <schwab@suse.de> | 2013-06-10 14:39:09 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2013-06-11 11:29:50 +0200 |
commit | 50fd745b4dec07e8e213cf2703b5cabcfa128225 (patch) | |
tree | c0341dcf5c4f3275cded07abeec6eefb3e427959 /nscd/nscd_netgroup.c | |
parent | 3ee7e9fe34a96cfbf2d39879c21eb36e70471ad1 (diff) | |
download | glibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.zip glibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.tar.gz glibc-50fd745b4dec07e8e213cf2703b5cabcfa128225.tar.bz2 |
Fix handling of netgroup cache in nscd
Diffstat (limited to 'nscd/nscd_netgroup.c')
-rw-r--r-- | nscd/nscd_netgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd_netgroup.c b/nscd/nscd_netgroup.c index cac4ebf..acb2c81 100644 --- a/nscd/nscd_netgroup.c +++ b/nscd/nscd_netgroup.c @@ -48,7 +48,7 @@ __nscd_setnetgrent (const char *group, struct __netgrent *datap) { int gc_cycle; int nretries = 0; - size_t group_len = strlen (group); + size_t group_len = strlen (group) + 1; /* If the mapping is available, try to search there instead of communicating with the nscd. */ |