Revision: 5060
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5060&view=rev
Author:   bphinz
Date:     2013-03-06 21:42:39 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
Need to escape formatting character.

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/CConn.java

Modified: trunk/java/com/tigervnc/vncviewer/CConn.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/CConn.java        2013-03-06 21:37:31 UTC 
(rev 5059)
+++ trunk/java/com/tigervnc/vncviewer/CConn.java        2013-03-06 21:42:39 UTC 
(rev 5060)
@@ -1166,8 +1166,8 @@
     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 &&

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to