X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/865bb3251ecf83ddac350b734f4fed1d258e250b..de9a407728e5f47ed416365da9c07798ad0b0b26:/src/gtk1/clipbrd.cpp diff --git a/src/gtk1/clipbrd.cpp b/src/gtk1/clipbrd.cpp index a8fc2c7ee0..0f5eda1871 100644 --- a/src/gtk1/clipbrd.cpp +++ b/src/gtk1/clipbrd.cpp @@ -287,7 +287,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), gtk_selection_data_set_text( selection_data, (const gchar*)d, - size); + size-1 ); } else #endif @@ -297,7 +297,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), GDK_SELECTION_TYPE_STRING, 8*sizeof(gchar), (unsigned char*) d, - size ); + size-1 ); } free(d);