aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-05-29 15:51:03 +0200
committerPierre Ossman <ossman@cendio.se>2018-05-29 15:51:03 +0200
commit2a85489a191c14efab813115dd900faa0130a198 (patch)
tree86b807f80923e013065fe30ae56d331e199a1a91 /vncviewer
parent8ee522a66e6d25aa1b89acb8a28c53cb63f781e5 (diff)
downloadtigervnc-2a85489a191c14efab813115dd900faa0130a198.tar.gz
tigervnc-2a85489a191c14efab813115dd900faa0130a198.zip
Fix parameter escape sequence parsing
We decoded "\\n" as "n" rather than "\n".
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/parameters.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index d24e5bcc..448a2434 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -253,7 +253,7 @@ static bool decodeValue(const char* val, char* dest, size_t destSize) {
if (val[i+1] == replaceMap[j].second) {
dest[pos] = replaceMap[j].first;
escapedCharacter = true;
- pos--;
+ i++;
break;
}
}