aboutsummaryrefslogtreecommitdiffstats
path: root/common/os
diff options
context:
space:
mode:
Diffstat (limited to 'common/os')
-rw-r--r--common/os/os.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/os/os.cxx b/common/os/os.cxx
index 5492c55e..2dfabc46 100644
--- a/common/os/os.cxx
+++ b/common/os/os.cxx
@@ -66,7 +66,7 @@ static const char* gethomedir(bool userDir)
if (userDir)
return homedir;
- snprintf(dir, sizeof(dir), "%s/.vnc/", homedir);
+ snprintf(dir, sizeof(dir), "%s/.vnc", homedir);
return dir;
#else
@@ -81,10 +81,10 @@ static const char* gethomedir(bool userDir)
if (userDir)
return dir;
- if (strlen(dir) + strlen("\\vnc\\") >= sizeof(dir))
+ if (strlen(dir) + strlen("\\vnc") >= sizeof(dir))
return NULL;
- strcat(dir, "\\vnc\\");
+ strcat(dir, "\\vnc");
return dir;
#endif