From 1f827f6be3dd2e6f7710c9d0d625a8fb97c9bfd1 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 20 Sep 2023 16:30:56 +0200 Subject: [PATCH] [client,mac] fix invalid const for variable --- client/Mac/Clipboard.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Mac/Clipboard.m b/client/Mac/Clipboard.m index 93f17bc06..10ca0670f 100644 --- a/client/Mac/Clipboard.m +++ b/client/Mac/Clipboard.m @@ -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 */