Use backslashes on Windows.
Although Windows itself supports the forward slash, some programs may not.
This commit is contained in:
parent
09a8ff649c
commit
18237e1f2d
7 changed files with 50 additions and 44 deletions
|
|
@ -231,9 +231,9 @@ bool execute_script(const char *name, char **envp) {
|
|||
int i;
|
||||
|
||||
#ifndef HAVE_MINGW
|
||||
len = xasprintf(&scriptname, "\"%s/%s\"", confbase, name);
|
||||
len = xasprintf(&scriptname, "\"%s" SLASH "%s\"", confbase, name);
|
||||
#else
|
||||
len = xasprintf(&scriptname, "\"%s/%s.bat\"", confbase, name);
|
||||
len = xasprintf(&scriptname, "\"%s" SLASH "%s.bat\"", confbase, name);
|
||||
#endif
|
||||
if(len < 0)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue