From 3fe718c1429a39ac8690e3ced9ca80d1f81773cc Mon Sep 17 00:00:00 2001 From: Meng Dong Date: Mon, 12 Jul 2021 10:45:11 +0800 Subject: [PATCH] Fix inconsistent line endings in vncviewer configuration file --- vncviewer/parameters.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx index f19853f1..a4e18363 100644 --- a/vncviewer/parameters.cxx +++ b/vncviewer/parameters.cxx @@ -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); -- 2.39.5