aboutsummaryrefslogtreecommitdiff
path: root/src/dxvk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dxvk.c')
-rw-r--r--src/dxvk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dxvk.c b/src/dxvk.c
index ffe9262..9b0a921 100644
--- a/src/dxvk.c
+++ b/src/dxvk.c
@@ -175,6 +175,14 @@ COMMAND(dxvk, install)
if (isFile(dxvkpath))
{
+ // quote the dxvkpath so whitespace won't cause trouble
+ {
+ char dxvkpathcpy[PATH_MAX] = {0};
+ strncat(dxvkpathcpy, "\"", sizeof(dxvkpathcpy) - strlen(dxvkpathcpy) - 1);
+ strncat(dxvkpathcpy, dxvkpath, sizeof(dxvkpathcpy) - strlen(dxvkpathcpy) - 1);
+ strncat(dxvkpathcpy, "\"", sizeof(dxvkpathcpy) - strlen(dxvkpathcpy) - 1);
+ strncpy(dxvkpath, dxvkpathcpy, sizeof(dxvkpathcpy));
+ }
strncat(dxvkpath, " install", sizeof(dxvkpath) - strlen(dxvkpath) - 1);
return system(dxvkpath);