diff --git a/client/Mac/MRDPView.m b/client/Mac/MRDPView.m index 70aab07f1..cd19443bc 100644 --- a/client/Mac/MRDPView.m +++ b/client/Mac/MRDPView.m @@ -772,8 +772,7 @@ DWORD fixKeyCode(DWORD keyCode, unichar keyChar, enum APPLE_KEYBOARD_TYPE type) { formatData = [item dataForType:type]; formatId = ClipboardRegisterFormat(mfc->clipboard, "UTF8_STRING"); - /* length does not include null terminator */ - size = (UINT32) [formatData length] + 1; + size = (UINT32) [formatData length]; data = [formatData bytes]; ClipboardSetData(mfc->clipboard, formatId, data, size); formatMatch = TRUE;