[client,mac] fix invalid const for variable
This commit is contained in:
parent
0595f2f7fe
commit
1f827f6be3
@ -365,7 +365,7 @@ mac_cliprdr_server_format_data_response(CliprdrClientContext *cliprdr,
|
|||||||
formatId = ClipboardRegisterFormat(mfc->clipboard, "text/plain");
|
formatId = ClipboardRegisterFormat(mfc->clipboard, "text/plain");
|
||||||
|
|
||||||
UINT32 dstSize = 0;
|
UINT32 dstSize = 0;
|
||||||
const char *data = ClipboardGetData(mfc->clipboard, formatId, &dstSize);
|
char *data = ClipboardGetData(mfc->clipboard, formatId, &dstSize);
|
||||||
|
|
||||||
dstSize = strnlen(data, dstSize); /* we need the size without the null terminator */
|
dstSize = strnlen(data, dstSize); /* we need the size without the null terminator */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user