diff options
-rw-r--r-- | unix/vncviewer/CConn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx index 8a647870..7983cdfc 100644 --- a/unix/vncviewer/CConn.cxx +++ b/unix/vncviewer/CConn.cxx @@ -130,7 +130,7 @@ CConn::~CConn() { 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); |