aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/util.cxx b/common/rfb/util.cxx
index cc5b7690..ecab8485 100644
--- a/common/rfb/util.cxx
+++ b/common/rfb/util.cxx
@@ -314,7 +314,7 @@ namespace rfb {
*dst++ = src;
*dst++ = L'\0';
return 1;
- } else if (src < 0x110000) {
+ } else if ((src >= 0x10000) && (src < 0x110000)) {
src -= 0x10000;
*dst++ = 0xd800 | ((src >> 10) & 0x03ff);
*dst++ = 0xdc00 | (src & 0x03ff);