oops! don't hardcode a 9

This commit is contained in:
StapleButter 2018-10-27 13:51:40 +02:00
parent f4890137c0
commit a4339daade
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ FILE* GetConfigFile(const char* fileName, const char* permissions)
int pos = wcslen(appDataPath);
CoTaskMemRealloc(appDataPath, (pos+wcslen(appdir)+fnlen+1)*sizeof(WCHAR));
wcscpy(&appDataPath[pos], appdir);
wcscpy(&appDataPath[pos+9], wfileName);
wcscpy(&appDataPath[pos], appdir); pos += wcslen(appdir);
wcscpy(&appDataPath[pos], wfileName);
// this will be more than enough
WCHAR fatperm[4];