From: Po Lu Date: Mon, 1 Jul 2024 14:55:03 +0000 (+0800) Subject: * exec/exec.c (exec_0): Restore erroneously deleted statement. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e3e8703c9bf5811ff2f20bce4c7489bc9a293bf;p=emacs.git * exec/exec.c (exec_0): Restore erroneously deleted statement. (cherry picked from commit e087d3009bf564446367a1465957d9ea7b699f01) --- diff --git a/exec/exec.c b/exec/exec.c index fad345c532c..775a8b06b96 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -974,6 +974,9 @@ exec_0 (char *name, struct exec_tracee *tracee, rewrite = buffer1 + link_size; remaining = buffer1 + sizeof buffer1 - rewrite - 1; memcpy (rewrite, name, strnlen (name, remaining)); + + /* Replace name with buffer1. */ + strcpy (name, buffer1); } }