aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-10-27 13:51:40 +0200
committerStapleButter <thetotalworm@gmail.com>2018-10-27 13:51:40 +0200
commita4339daade79e942208c2f3cf3c42fa63330f9fc (patch)
tree0d95f5ae27d2899c865c748772888f5eb4981a1d /src
parentf4890137c040947825f07c66272985793f9284b2 (diff)
oops! don't hardcode a 9
Diffstat (limited to 'src')
-rw-r--r--src/Config.cpp4
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];