[client,mac] fix invalid const for variable

This commit is contained in:
akallabeth 2023-09-20 16:30:56 +02:00 committed by Martin Fleisz
parent 0595f2f7fe
commit 1f827f6be3

View File

@ -365,7 +365,7 @@ mac_cliprdr_server_format_data_response(CliprdrClientContext *cliprdr,
formatId = ClipboardRegisterFormat(mfc->clipboard, "text/plain");
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 */