summaryrefslogtreecommitdiff
path: root/inet/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/rcmd.c')
-rw-r--r--inet/rcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c
index 92ce094807..d496a7a8fa 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -330,8 +330,8 @@ again:
dirlen = strlen (pwd->pw_dir);
pbuf = alloca (dirlen + sizeof "/.rhosts");
- memcpy (pbuf, pwd->pw_dir, dirlen);
- memcpy (pbuf + dirlen, "/.rhosts", sizeof "/.rhosts");
+ __mempcpy (__mempcpy (pbuf, pwd->pw_dir, dirlen),
+ "/.rhosts", sizeof "/.rhosts");
/*
* Change effective uid while opening .rhosts. If root and