aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/JpegCompressor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/JpegCompressor.cxx')
-rw-r--r--common/rfb/JpegCompressor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/JpegCompressor.cxx b/common/rfb/JpegCompressor.cxx
index 42d5c475..49ed4b61 100644
--- a/common/rfb/JpegCompressor.cxx
+++ b/common/rfb/JpegCompressor.cxx
@@ -127,7 +127,7 @@ JpegCompressor::JpegCompressor(int bufferLen) : MemOutStream(bufferLen)
if(setjmp(err->jmpBuffer)) {
// this will execute if libjpeg has an error
- throw rdr::Exception("%s", err->lastError);
+ throw rdr::Exception(err->lastError);
}
jpeg_create_compress(cinfo);
@@ -171,7 +171,7 @@ void JpegCompressor::compress(const uint8_t *buf, volatile int stride,
jpeg_abort_compress(cinfo);
if (srcBufIsTemp && srcBuf) delete[] srcBuf;
if (rowPointer) delete[] rowPointer;
- throw rdr::Exception("%s", err->lastError);
+ throw rdr::Exception(err->lastError);
}
cinfo->image_width = w;