mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Quote executable name in case there are spaces.
This commit is contained in:
@@ -46,9 +46,9 @@ namespace bx
|
||||
return false;
|
||||
}
|
||||
|
||||
char tmp[kMaxFilePath*2];
|
||||
strCopy(tmp, BX_COUNTOF(tmp), _filePath.get() );
|
||||
strCat(tmp, BX_COUNTOF(tmp), " ");
|
||||
char tmp[kMaxFilePath*2] = "\"";
|
||||
strCat(tmp, BX_COUNTOF(tmp), _filePath.get() );
|
||||
strCat(tmp, BX_COUNTOF(tmp), "\" ");
|
||||
strCat(tmp, BX_COUNTOF(tmp), _args);
|
||||
|
||||
m_file = popen(tmp, "r");
|
||||
@@ -117,9 +117,9 @@ namespace bx
|
||||
return false;
|
||||
}
|
||||
|
||||
char tmp[kMaxFilePath*2];
|
||||
strCopy(tmp, BX_COUNTOF(tmp), _filePath.get() );
|
||||
strCat(tmp, BX_COUNTOF(tmp), " ");
|
||||
char tmp[kMaxFilePath*2] = "\"";
|
||||
strCat(tmp, BX_COUNTOF(tmp), _filePath.get() );
|
||||
strCat(tmp, BX_COUNTOF(tmp), "\" ");
|
||||
strCat(tmp, BX_COUNTOF(tmp), _args);
|
||||
|
||||
m_file = popen(tmp, "w");
|
||||
|
||||
Reference in New Issue
Block a user