Fixed #7520: remove trailing '\0' from clipboard data

This commit is contained in:
Armin Novak 2022-01-10 09:49:25 +01:00 committed by akallabeth
parent 3cc4a255d6
commit 3700ccbfc8

View File

@ -723,8 +723,10 @@ wlf_cliprdr_server_format_data_response(CliprdrClientContext* context,
if (cnv < 0) if (cnv < 0)
return ERROR_INTERNAL_ERROR; return ERROR_INTERNAL_ERROR;
size = (UINT32)cnv;
data = cdata; data = cdata;
size = 0;
if (cnv > 0)
size = (UINT32)strnlen(data, (size_t)cnv);
break; break;
default: default: