diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Config.cpp b/src/Config.cpp index 780ddde..be9e53f 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -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]; |