aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/TightDecoder.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-02 16:17:31 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:22 +0100
commit158eb92c4bc4ec7cdedabd9b192648627513c518 (patch)
tree61dd50a0bcae0c86459053fcc46c913dee81b701 /common/rfb/TightDecoder.cxx
parent067d0e89bf344609ec202f895252411c8fcaec1c (diff)
downloadtigervnc-158eb92c4bc4ec7cdedabd9b192648627513c518.tar.gz
tigervnc-158eb92c4bc4ec7cdedabd9b192648627513c518.zip
Use static string for exceptions
In preparation for using the built in C++ exception classes, which do not accept a format string.
Diffstat (limited to 'common/rfb/TightDecoder.cxx')
-rw-r--r--common/rfb/TightDecoder.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/rfb/TightDecoder.cxx b/common/rfb/TightDecoder.cxx
index 807f71a5..89d2e839 100644
--- a/common/rfb/TightDecoder.cxx
+++ b/common/rfb/TightDecoder.cxx
@@ -36,6 +36,7 @@
#include <rfb/PixelBuffer.h>
#include <rfb/TightConstants.h>
#include <rfb/TightDecoder.h>
+#include <rfb/util.h>
using namespace rfb;
@@ -110,7 +111,7 @@ bool TightDecoder::readRect(const Rect& r, rdr::InStream* is,
int palSize = 0;
if (r.width() > TIGHT_MAX_WIDTH)
- throw Exception("TightDecoder: too large rectangle (%d pixels)", r.width());
+ throw Exception(format("TightDecoder: too large rectangle (%d pixels)", r.width()));
// Possible palette
if ((comp_ctl & tightExplicitFilter) != 0) {