]> source.dussan.org Git - tigervnc.git/commitdiff
Need to escape formatting character.
authorBrian Hinz <bphinz@users.sourceforge.net>
Wed, 6 Mar 2013 21:42:39 +0000 (21:42 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Wed, 6 Mar 2013 21:42:39 +0000 (21:42 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5060 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/CConn.java

index 3638463728af14fb702628316b7ddb811c17e622..09fa2d78f6b3a98efa22b3a504d6affb1468cf07 100644 (file)
@@ -1166,8 +1166,8 @@ public class CConn extends CConnection
     key = ev.getKeyChar();
     location = ev.getKeyLocation();
 
-    String fmt = ev.paramString().replaceAll(",","%n       ");
-    vlog.debug(String.format(fmt));
+    String fmt = ev.paramString().replaceAll("%","%%");
+    vlog.debug(String.format(fmt.replaceAll(",","%n       ")));
 
     if (!ev.isActionKey()) {
       if (keycode >= KeyEvent.VK_0 && keycode <= KeyEvent.VK_9 &&