1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00

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

This commit is contained in:
Po Lu 2024-07-01 22:55:03 +08:00
parent 085a813c33
commit e087d3009b

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