summaryrefslogtreecommitdiffstats
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 6c2af38a..68ddee1a 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -523,8 +523,8 @@ void saveViewerParameters(const char *filename, const char *servername) {
/* Write parameters to file */
FILE* f = fopen(filepath, "w+");
if (!f) {
- snprintf(write_error, sizeof(filepath), "Failed to write configuration file, "
- "can't open %s", filepath);
+ snprintf(write_error, sizeof(write_error),
+ "Failed to write configuration file, can't open %s", filepath);
throw Exception(write_error);
}