]> git.eshelyaron.com Git - emacs.git/commitdiff
; * exec/exec.c (exec_0): Use strcpy.
authorPo Lu <luangruo@yahoo.com>
Tue, 23 May 2023 01:22:19 +0000 (09:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 23 May 2023 01:22:19 +0000 (09:22 +0800)
exec/exec.c

index a15386b51bb3feeb92fe30500431aeb23e0adacd..0e077284860de76788b33f3ab76c877c1d4dbcc0 100644 (file)
@@ -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.  */