* src/job.c (construct_command_argv_internal) [__EMX__]: Use a buffer
allocated in a stack.
---
src/job.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/job.c b/src/job.c
index b78f279c..aa848f0e 100644
--- a/src/job.c
+++ b/src/job.c
@@ -3226,7 +3226,11 @@ construct_command_argv_internal (char *line, char
**restp, const char *shell,
# ifdef __EMX__ /* is this necessary? */
if (!unixy_shell && shellflags)
- shellflags[0] = '/'; /* "/c" */
+ {
+ char *shflags = strdupa (shellflags);
+ shflags[0] = '/'; /* "/c" */
+ shellflags = shflags;
+ }
# endif
/* In .ONESHELL mode we are allowed to throw the entire current
--
2.30.0