diff options
Diffstat (limited to 'common/rdr/BufferedOutStream.cxx')
-rw-r--r-- | common/rdr/BufferedOutStream.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/rdr/BufferedOutStream.cxx b/common/rdr/BufferedOutStream.cxx index 0d6a1eb6..f5062bf2 100644 --- a/common/rdr/BufferedOutStream.cxx +++ b/common/rdr/BufferedOutStream.cxx @@ -25,6 +25,7 @@ #include <rdr/BufferedOutStream.h> #include <rdr/Exception.h> +#include <rfb/util.h> using namespace rdr; @@ -138,10 +139,10 @@ void BufferedOutStream::overrun(size_t needed) // We'll need to allocate more buffer space... if (totalNeeded > MAX_BUF_SIZE) - throw Exception("BufferedOutStream overrun: requested size of " - "%lu bytes exceeds maximum of %lu bytes", - (long unsigned)totalNeeded, - (long unsigned)MAX_BUF_SIZE); + throw Exception(rfb::format("BufferedOutStream overrun: requested " + "size of %lu bytes exceeds maximum of " + "%lu bytes", (long unsigned)totalNeeded, + (long unsigned)MAX_BUF_SIZE)); newSize = DEFAULT_BUF_SIZE; while (newSize < totalNeeded) |