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


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4219 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index 8a64787..7983cdf 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -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);