diff options
Diffstat (limited to 'common/rfb/SMsgReader.cxx')
-rw-r--r-- | common/rfb/SMsgReader.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SMsgReader.cxx b/common/rfb/SMsgReader.cxx index 8cd8d147..68c9365b 100644 --- a/common/rfb/SMsgReader.cxx +++ b/common/rfb/SMsgReader.cxx @@ -229,7 +229,7 @@ bool SMsgReader::readFence() { uint32_t flags; uint8_t len; - char data[64]; + uint8_t data[64]; if (!is->hasData(3 + 4 + 1)) return false; @@ -315,7 +315,7 @@ bool SMsgReader::readClientCutText() } std::vector<char> ca(len); - is->readBytes(ca.data(), len); + is->readBytes((uint8_t*)ca.data(), len); std::string filtered(convertLF(ca.data(), len)); handler->clientCutText(filtered.c_str()); |