From 2ff61a285efda80cca7f1855aca23b99149bac8c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 29 Apr 2019 14:13:16 +0200 Subject: [PATCH] Remove unneeded logging from ZRLE decoder We will log the exception, so avoid direct writes to stderr by simply removing these log lines. --- common/rfb/zrleDecode.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/rfb/zrleDecode.h b/common/rfb/zrleDecode.h index b8148672..32b5c92b 100644 --- a/common/rfb/zrleDecode.h +++ b/common/rfb/zrleDecode.h @@ -134,7 +134,6 @@ void ZRLE_DECODE (const Rect& r, rdr::InStream* is, } while (b == 255); if (end - ptr < len) { - fprintf (stderr, "ZRLE decode error\n"); throw Exception ("ZRLE decode error"); } @@ -158,7 +157,6 @@ void ZRLE_DECODE (const Rect& r, rdr::InStream* is, } while (b == 255); if (end - ptr < len) { - fprintf (stderr, "ZRLE decode error\n"); throw Exception ("ZRLE decode error"); } } -- 2.39.5