summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-16 18:29:58 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-16 18:29:58 +0000
commitd8f2b9ea8cf4fb6d043f2dbbeaaca04d4fd70fc6 (patch)
treec4d851a3e692dfcd7a358a14ef190818dd7ef744 /nscd
parent9c4c002459bd2665ac1ad544e56952ec7797e8dd (diff)
downloadglibc-d8f2b9ea8cf4fb6d043f2dbbeaaca04d4fd70fc6.tar.gz
glibc-d8f2b9ea8cf4fb6d043f2dbbeaaca04d4fd70fc6.tar.xz
glibc-d8f2b9ea8cf4fb6d043f2dbbeaaca04d4fd70fc6.zip
Update.
1998-09-16  Ulrich Drepper  <drepper@cygnus.com>

	* nscd/grpcache.c (save_grp): Partly undo last change.

	* nscd/pwdcache.c (save_pwd): Undo last change.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/grpcache.c4
-rw-r--r--nscd/pwdcache.c8
2 files changed, 6 insertions, 6 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;
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 12d18ddacc..85b4fe9bde 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -146,15 +146,15 @@ save_pwd (struct passwd *src)
 
   cp = (char *) (dest + 1);
   dest->pw_name = cp;
-  cp = mempcpy (cp, src->pw_name, name_len) + 1;
+  cp = mempcpy (cp, src->pw_name, name_len);
   dest->pw_passwd = cp;
-  cp = mempcpy (cp, src->pw_passwd, passwd_len) + 1;
+  cp = mempcpy (cp, src->pw_passwd, passwd_len);
   dest->pw_uid = src->pw_uid;
   dest->pw_gid = src->pw_gid;
   dest->pw_gecos = cp;
-  cp = mempcpy (cp, src->pw_gecos, gecos_len) + 1;
+  cp = mempcpy (cp, src->pw_gecos, gecos_len);
   dest->pw_dir = cp;
-  cp = mempcpy (cp, src->pw_dir, dir_len) + 1;
+  cp = mempcpy (cp, src->pw_dir, dir_len);
   dest->pw_shell = cp;
   mempcpy (cp, src->pw_shell, shell_len);