1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Linux: Fixed a UTF-8 conversion issue in the system clipboard code

This commit is contained in:
ed 2020-07-20 16:48:36 +01:00
parent e92749e7ca
commit 00ed43e29a

View file

@ -1155,7 +1155,7 @@ namespace ClipboardHelpers
// translate to utf8
numDataItems = localContent.getNumBytesAsUTF8() + 1;
data.calloc (numDataItems + 1);
data.calloc (numDataItems);
localContent.copyToUTF8 (data, numDataItems);
propertyFormat = 8; // bits/item
}