src/w32proc.c (sys_spawnve): Avoid modification of the CMDNAME
argument passed by the caller, when we mirror all slashes into
backslashes.
+2014-10-01 Eli Zaretskii <eliz@gnu.org>
+
+ * w32proc.c (sys_spawnve): Avoid modification of the CMDNAME
+ argument passed by the caller, when we mirror all slashes into
+ backslashes.
+
2014-10-01 Dmitry Antipov <dmantipov@yandex.ru>
* gtkutil.c (xg_set_toolkit_horizontal_scroll_bar_thumb):
program = ENCODE_FILE (full);
cmdname = SDATA (program);
}
+ else
+ {
+ char *p = alloca (strlen (cmdname) + 1);
+
+ /* Don't change the command name we were passed by our caller
+ (unixtodos_filename below will destructively mirror forward
+ slashes). */
+ cmdname = strcpy (p, cmdname);
+ }
/* make sure argv[0] and cmdname are both in DOS format */
unixtodos_filename (cmdname);