diff options
author | Benjamin Otte <otte@redhat.com> | 2020-10-07 22:14:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-10-07 22:14:18 +0200 |
commit | 0fdb33e82ac8815a24b43190453801cbc2d9a40e (patch) | |
tree | b665cf77b15b494df8aac6ea3b86cbcfaf5839af | |
parent | 4993cde0cb6bba89626b4ac2eee1bad397654bef (diff) | |
download | gtk+-0fdb33e82ac8815a24b43190453801cbc2d9a40e.tar.gz |
textbuffer: Don't serialize the \0 byte
... when converting to text/plain.
-rw-r--r-- | gtk/gtktextbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 2e846785e7..c7dd9d8c46 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -407,7 +407,7 @@ gtk_text_buffer_serialize_text_plain (GdkContentSerializer *serializer) g_output_stream_write_all_async (gdk_content_serializer_get_output_stream (serializer), str, - strlen (str) + 1, + strlen (str), gdk_content_serializer_get_priority (serializer), gdk_content_serializer_get_cancellable (serializer), gtk_text_buffer_serialize_text_plain_finish, |