aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/parameters.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/parameters.cxx')
-rw-r--r--vncviewer/parameters.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index 03f2b145..ff5589d2 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -633,7 +633,7 @@ void saveViewerParameters(const char *filename, const char *servername) {
if (homeDir == NULL)
throw Exception(_("Could not obtain the home directory path"));
- snprintf(filepath, sizeof(filepath), "%sdefault.tigervnc", homeDir);
+ snprintf(filepath, sizeof(filepath), "%s/default.tigervnc", homeDir);
} else {
snprintf(filepath, sizeof(filepath), "%s", filename);
}
@@ -737,7 +737,7 @@ char* loadViewerParameters(const char *filename) {
if (homeDir == NULL)
throw Exception(_("Could not obtain the home directory path"));
- snprintf(filepath, sizeof(filepath), "%sdefault.tigervnc", homeDir);
+ snprintf(filepath, sizeof(filepath), "%s/default.tigervnc", homeDir);
} else {
snprintf(filepath, sizeof(filepath), "%s", filename);
}