The null byte at the end of the string should not be included in the
size of a text data object in the clipboard, otherwise we have to subtract it when the data is requested and that results in truncating one byte for other data formats. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -298,7 +298,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
|
||||
GDK_SELECTION_TYPE_STRING,
|
||||
8 * sizeof(gchar),
|
||||
(unsigned char*) d,
|
||||
size-1 );
|
||||
size );
|
||||
|
||||
free(d);
|
||||
}
|
||||
|
Reference in New Issue
Block a user