]> source.dussan.org Git - tigervnc.git/commitdiff
Fix inconsistent line endings in vncviewer configuration file
authorMeng Dong <whenov@gmail.com>
Mon, 12 Jul 2021 02:45:11 +0000 (10:45 +0800)
committerPierre Ossman <ossman@cendio.se>
Thu, 2 Sep 2021 14:26:08 +0000 (16:26 +0200)
vncviewer/parameters.cxx

index f19853f1b196a330019bdf68c9073417602bc019..a4e18363133c1fdb83fad5ed0668c874e5d39bef 100644 (file)
@@ -639,8 +639,8 @@ void saveViewerParameters(const char *filename, const char *servername) {
     throw Exception(_("Failed to write configuration file, can't open %s: %s"),
                     filepath, strerror(errno));
   
-  fprintf(f, "%s\r\n", IDENTIFIER_STRING);
-  fprintf(f, "\r\n");
+  fprintf(f, "%s\n", IDENTIFIER_STRING);
+  fprintf(f, "\n");
 
   if (encodeValue(servername, encodingBuffer, buffersize))
     fprintf(f, "ServerName=%s\n", encodingBuffer);