diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-04-25 15:43:56 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-04-25 15:43:56 +0000 |
commit | f52740e7eaead1170e20f25c7da79a98da97d6ff (patch) | |
tree | fd1cac9b31ea1e1498a1aee33606c18e09d16ee5 /vncviewer/Viewport.cxx | |
parent | 33bead4a29a67d1d5ba0445647c330fd0bfae5eb (diff) | |
download | tigervnc-f52740e7eaead1170e20f25c7da79a98da97d6ff.tar.gz tigervnc-f52740e7eaead1170e20f25c7da79a98da97d6ff.zip |
Make sure we're paranoid about accidentally feeding a format string.
Basic patch by Joachim Falk. Slightly improved before commit.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4900 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r-- | vncviewer/Viewport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 768bc34e..1588f274 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -950,7 +950,7 @@ void Viewport::popupContextMenu() case ID_INFO: if (fltk_escape(cc->connectionInfo(), buffer, sizeof(buffer)) < sizeof(buffer)) { fl_message_title(_("VNC connection info")); - fl_message(buffer); + fl_message("%s", buffer); } break; case ID_ABOUT: |