summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/CConn.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 97e35ba0..4aeb03f1 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -350,6 +350,9 @@ void CConn::serverCutText(const char* str, rdr::U32 len)
char *buffer;
int size, ret;
+ if (!acceptClipboard)
+ return;
+
size = fl_utf8froma(NULL, 0, str, len);
if (size <= 0)
return;