aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/util.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/util.cxx')
-rw-r--r--common/rfb/util.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rfb/util.cxx b/common/rfb/util.cxx
index 6284bb81..00e2831c 100644
--- a/common/rfb/util.cxx
+++ b/common/rfb/util.cxx
@@ -291,6 +291,8 @@ namespace rfb {
max--;
while (count--) {
+ consumed++;
+
// Invalid or truncated sequence?
if ((max == 0) || ((*src & 0xc0) != 0x80)) {
*dst = 0xfffd;