Browse Source

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

tags/2021-05-28
ed 4 years ago
parent
commit
00ed43e29a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp

+ 1
- 1
modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp 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
}


Loading…
Cancel
Save