mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
Fixed #7520: remove trailing '\0' from clipboard data
This commit is contained in:
@@ -723,8 +723,10 @@ wlf_cliprdr_server_format_data_response(CliprdrClientContext* context,
|
||||
if (cnv < 0)
|
||||
return ERROR_INTERNAL_ERROR;
|
||||
|
||||
size = (UINT32)cnv;
|
||||
data = cdata;
|
||||
size = 0;
|
||||
if (cnv > 0)
|
||||
size = (UINT32)strnlen(data, (size_t)cnv);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user