Use backslashes on Windows.

Although Windows itself supports the forward slash, some programs may not.
This commit is contained in:
Guus Sliepen 2012-07-21 16:26:55 +02:00
parent 09a8ff649c
commit 18237e1f2d
7 changed files with 50 additions and 44 deletions

View file

@ -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;