]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied GTK clipboard end of string patch.
authorRobert Roebling <robert@roebling.de>
Sat, 16 Jul 2005 06:46:32 +0000 (06:46 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 16 Jul 2005 06:46:32 +0000 (06:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/clipbrd.cpp
src/gtk1/clipbrd.cpp

index a8fc2c7ee0f6d3909642fc06c6b365ea58f003bb..0f5eda18713885c148f92dfe4ccd29734b60a95f 100644 (file)
@@ -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);
index a8fc2c7ee0f6d3909642fc06c6b365ea58f003bb..0f5eda18713885c148f92dfe4ccd29734b60a95f 100644 (file)
@@ -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);