diff options
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r-- | nscd/grpcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c index beffa1e4a8..f34780ac4e 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -152,9 +152,9 @@ save_grp (struct group *src) cp = (char *) (dest->gr_mem + l + 1); dest->gr_name = cp; - cp = mempcpy (cp, src->gr_name, name_len) + 1; + cp = mempcpy (cp, src->gr_name, name_len); dest->gr_passwd = cp; - cp = mempcpy (cp, src->gr_passwd, passwd_len) + 1; + cp = mempcpy (cp, src->gr_passwd, passwd_len); dest->gr_gid = src->gr_gid; l = 0; |