GUAC-1389: Two clipboard formats should allocate two cells for said formats.

This commit is contained in:
Michael Jumper 2016-03-04 15:23:01 -08:00
parent 6764196527
commit eadc3a91a9

View File

@ -298,7 +298,7 @@ int guac_rdp_clipboard_end_handler(guac_user* user, guac_stream* stream) {
guac_common_clipboard_append(rdp_client->clipboard, "", 1); guac_common_clipboard_append(rdp_client->clipboard, "", 1);
/* Notify server that text data is now available */ /* 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[0] = CB_FORMAT_TEXT;
format_list->formats[1] = CB_FORMAT_UNICODETEXT; format_list->formats[1] = CB_FORMAT_UNICODETEXT;
format_list->num_formats = 2; format_list->num_formats = 2;