]> git.eshelyaron.com Git - emacs.git/commitdiff
* exec/exec.c (exec_0): Restore erroneously deleted statement.
authorPo Lu <luangruo@yahoo.com>
Mon, 1 Jul 2024 14:55:03 +0000 (22:55 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Jul 2024 18:45:49 +0000 (20:45 +0200)
(cherry picked from commit e087d3009bf564446367a1465957d9ea7b699f01)

exec/exec.c

index fad345c532cdcd5385b05ad3fdaf764f88e2e013..775a8b06b968018b6d688c3e6670efdf243f731e 100644 (file)
@@ -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);
        }
     }