about summary refs log tree commit diff
path: root/nscd/nscd_netgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd_netgroup.c')
-rw-r--r--nscd/nscd_netgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd_netgroup.c b/nscd/nscd_netgroup.c
index cac4ebfcd3..acb2c81457 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.  */