Skip to content

Commit

Permalink
Update mkdir string to be within quotation marks
Browse files Browse the repository at this point in the history
Can cause nasty issues with creating directories if not quoted
  • Loading branch information
xan1242 authored Jan 2, 2020
1 parent c655256 commit e504c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ int InitConfig()
if (stat(UserDir, &st) == -1)
{
// NOT crossplatform compatible - made exclusively due to simplicity's sake
sprintf(MkDirStr, "mkdir %s", UserDir);
sprintf(MkDirStr, "mkdir \"%s\"", UserDir);
system(MkDirStr);
}
sprintf(UserDir, "%s\\", InputDirString);
Expand All @@ -2223,7 +2223,7 @@ int InitConfig()
if (stat(UserDir, &st) == -1)
{
// NOT crossplatform compatible - made exclusively due to simplicity's sake
sprintf(MkDirStr, "mkdir %s", UserDir);
sprintf(MkDirStr, "mkdir \"%s\"", UserDir);
system(MkDirStr);
}
strcat(UserDir, "\\");
Expand Down

0 comments on commit e504c2f

Please sign in to comment.