summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentserializer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-09-11 17:25:02 +0200
committerBenjamin Otte <otte@redhat.com>2020-09-11 17:25:02 +0200
commit640856edec45c379cfaf2383cb9d155605a36de9 (patch)
tree22d42b1f037a30399c4f2cbb9583996591c023b6 /gdk/gdkcontentserializer.c
parent1e7fccf46f621f3fedf141b8b6e4ddbde54ee562 (diff)
downloadgtk+-640856edec45c379cfaf2383cb9d155605a36de9.tar.gz
contentserializer: Don't send the terminating \0 byte for strings
Fixes #3150
Diffstat (limited to 'gdk/gdkcontentserializer.c')
-rw-r--r--gdk/gdkcontentserializer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c
index ea42397f99..7a3e4c3d22 100644
--- a/gdk/gdkcontentserializer.c
+++ b/gdk/gdkcontentserializer.c
@@ -681,7 +681,7 @@ string_serializer (GdkContentSerializer *serializer)
g_output_stream_write_all_async (filter,
text,
- strlen (text) + 1,
+ strlen (text),
gdk_content_serializer_get_priority (serializer),
gdk_content_serializer_get_cancellable (serializer),
string_serializer_finish,