emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e087d3009bf: * exec/exec.c (exec_0): Restore erroneously deleted


From: Po Lu
Subject: master e087d3009bf: * exec/exec.c (exec_0): Restore erroneously deleted statement.
Date: Mon, 1 Jul 2024 10:55:42 -0400 (EDT)

branch: master
commit e087d3009bf564446367a1465957d9ea7b699f01
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * exec/exec.c (exec_0): Restore erroneously deleted statement.
---
 exec/exec.c | 3 +++
 1 file changed, 3 insertions(+)

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);
        }
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]