summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
Diffstat (limited to 'exec')
-rw-r--r--exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index a15386b51bb..0e077284860 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -983,7 +983,7 @@ exec_0 (char *name, struct exec_tracee *tracee,
/* Copy over /proc, the PID, and /cwd/. */
rewrite = stpcpy (buffer, "/proc/");
rewrite = format_pid (rewrite, tracee->pid);
- stpcpy (rewrite, "/cwd");
+ strcpy (rewrite, "/cwd");
/* Resolve this symbolic link. */