diff options
author | Adam Tkac <atkac@redhat.com> | 2010-12-08 14:42:16 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-12-08 14:42:16 +0000 |
commit | 1e3c6645d3cf547c841163c254fe8260e5250964 (patch) | |
tree | f1e58878d5903dfb7373057759e82dbd3b74b306 /unix | |
parent | 09651ae649dfe30249c8045887d2fef2b3565003 (diff) | |
download | tigervnc-1e3c6645d3cf547c841163c254fe8260e5250964.tar.gz tigervnc-1e3c6645d3cf547c841163c254fe8260e5250964.zip |
[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
Diffstat (limited to 'unix')
-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); |