diff options
author | Pierre Ossman <ossman@cendio.se> | 2013-07-01 13:59:35 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2013-07-01 13:59:35 +0000 |
commit | 74d412c23bf69fbe6525d0047786ff67fddb95bd (patch) | |
tree | 49645280b736ced12e2bfe48ddf8003a3e2b3801 /vncviewer | |
parent | 749eaa7c689e87492dd1e8991d45c0738c97ac18 (diff) | |
download | tigervnc-74d412c23bf69fbe6525d0047786ff67fddb95bd.tar.gz tigervnc-74d412c23bf69fbe6525d0047786ff67fddb95bd.zip |
Fix copy-paste error that referred to the wrong variable.
Bug found by David Binderman.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5126 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/parameters.cxx | 4 |
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); } |