aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-05-16 14:32:09 +0200
committerPierre Ossman <ossman@cendio.se>2017-08-28 13:54:30 +0200
commita00a87db4f73ee82386269759c0d244dfdb395f2 (patch)
tree1f758dc8aea17d64d6cce107e9569905cf1b63c1 /common/rfb
parent5ae282135f982505fab655d4f597e7329fb8b0d1 (diff)
downloadtigervnc-a00a87db4f73ee82386269759c0d244dfdb395f2.tar.gz
tigervnc-a00a87db4f73ee82386269759c0d244dfdb395f2.zip
Fix wrong argument for CMsgWriter::clientCutText()
As a result we weren't overloading properly.
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/CMsgWriter.cxx2
-rw-r--r--common/rfb/CMsgWriter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/CMsgWriter.cxx b/common/rfb/CMsgWriter.cxx
index 57d1283a..84a0d1f1 100644
--- a/common/rfb/CMsgWriter.cxx
+++ b/common/rfb/CMsgWriter.cxx
@@ -256,7 +256,7 @@ void CMsgWriter::pointerEvent(const Point& pos, int buttonMask)
}
-void CMsgWriter::clientCutText(const char* str, rdr::U32 len)
+void CMsgWriter::clientCutText(const char* str, int len)
{
startMsg(msgTypeClientCutText);
os->pad(3);
diff --git a/common/rfb/CMsgWriter.h b/common/rfb/CMsgWriter.h
index 56e0b7b9..b1f01195 100644
--- a/common/rfb/CMsgWriter.h
+++ b/common/rfb/CMsgWriter.h
@@ -57,7 +57,7 @@ namespace rfb {
virtual void keyEvent(rdr::U32 keysym, rdr::U32 keycode, bool down);
virtual void pointerEvent(const Point& pos, int buttonMask);
- virtual void clientCutText(const char* str, rdr::U32 len);
+ virtual void clientCutText(const char* str, int len);
protected:
void startMsg(int type);