Revision: 5133
          http://sourceforge.net/p/tigervnc/code/5133
Author:   ossman_
Date:     2013-09-05 14:25:40 +0000 (Thu, 05 Sep 2013)
Log Message:
-----------
Printing the clipboard data is very annoying as it could
include line breaks, things with the wrong character encoding
and god knows what. Just print the size of the data instead.

Modified Paths:
--------------
    trunk/vncviewer/CConn.cxx
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/CConn.cxx
===================================================================
--- trunk/vncviewer/CConn.cxx   2013-08-29 08:33:52 UTC (rev 5132)
+++ trunk/vncviewer/CConn.cxx   2013-09-05 14:25:40 UTC (rev 5133)
@@ -364,7 +364,7 @@
   ret = fl_utf8froma(buffer, size, str, len);
   assert(ret < size);
 
-  vlog.debug("Got clipboard data: '%s'", buffer);
+  vlog.debug("Got clipboard data (%d bytes)", strlen(buffer));
 
   // RFB doesn't have separate selection and clipboard concepts, so we
   // dump the data into both variants.

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2013-08-29 08:33:52 UTC (rev 5132)
+++ trunk/vncviewer/Viewport.cxx        2013-09-05 14:25:40 UTC (rev 5133)
@@ -365,7 +365,7 @@
                      Fl::event_length() + 1);
     assert(ret < (Fl::event_length() + 1));
 
-    vlog.debug("Sending clipboard data: '%s'", buffer);
+    vlog.debug("Sending clipboard data (%d bytes)", strlen(buffer));
 
     try {
       cc->writer()->clientCutText(buffer, ret);

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


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to