summaryrefslogtreecommitdiff
path: root/libc/nscd/nscd_netgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/nscd/nscd_netgroup.c')
-rw-r--r--libc/nscd/nscd_netgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/nscd/nscd_netgroup.c b/libc/nscd/nscd_netgroup.c
index cac4ebfcd..acb2c8145 100644
--- a/libc/nscd/nscd_netgroup.c
+++ b/libc/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. */