]> source.dussan.org Git - tigervnc.git/commitdiff
Fix copy-paste error that referred to the wrong variable.
authorPierre Ossman <ossman@cendio.se>
Mon, 1 Jul 2013 13:59:35 +0000 (13:59 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 1 Jul 2013 13:59:35 +0000 (13:59 +0000)
Bug found by David Binderman.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5126 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/parameters.cxx

index 6c2af38ac0db9e2d0830cda3b8fe04453e79d4a4..68ddee1a6eb0ea38ba8223c73d0f36c1c7352879 100644 (file)
@@ -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);
   }