From eadc3a91a932b9133634b946ca907fbca5d38686 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 4 Mar 2016 15:23:01 -0800 Subject: [PATCH] GUAC-1389: Two clipboard formats should allocate two cells for said formats. --- src/protocols/rdp/rdp_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/rdp/rdp_stream.c b/src/protocols/rdp/rdp_stream.c index a4106532..2bc39dda 100644 --- a/src/protocols/rdp/rdp_stream.c +++ b/src/protocols/rdp/rdp_stream.c @@ -298,7 +298,7 @@ int guac_rdp_clipboard_end_handler(guac_user* user, guac_stream* stream) { guac_common_clipboard_append(rdp_client->clipboard, "", 1); /* Notify server that text data is now available */ - format_list->formats = (UINT32*) malloc(sizeof(UINT32)); + format_list->formats = (UINT32*) malloc(sizeof(UINT32) * 2); format_list->formats[0] = CB_FORMAT_TEXT; format_list->formats[1] = CB_FORMAT_UNICODETEXT; format_list->num_formats = 2;