Revision: 4219
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4219&view=rev
Author:   atkac
Date:     2010-12-08 14:42:16 +0000 (Wed, 08 Dec 2010)

Log Message:
-----------
[Bugfix] Fix "off-by-one" sprintf error in CConn::showMsgBox() function.

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

Modified: trunk/unix/vncviewer/CConn.cxx
===================================================================
--- trunk/unix/vncviewer/CConn.cxx      2010-12-08 13:49:50 UTC (rev 4218)
+++ trunk/unix/vncviewer/CConn.cxx      2010-12-08 14:42:16 UTC (rev 4219)
@@ -130,7 +130,7 @@
 
 bool CConn::showMsgBox(int flags, const char* title, const char* text)
 {
-  CharArray titleText(strlen(title) + 12);
+  CharArray titleText(12 + strlen(title) + 1);
   sprintf(titleText.buf, "VNC Viewer: %s", title);
 
   TXMsgBox msgBox(dpy,text,flags,titleText.buf);


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

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to