[gtk/wip/otte/for-master] contentserializer: Don't send the terminating \0 byte for strings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master] contentserializer: Don't send the terminating \0 byte for strings
- Date: Fri, 11 Sep 2020 15:27:21 +0000 (UTC)
commit 640856edec45c379cfaf2383cb9d155605a36de9
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 11 17:25:02 2020 +0200
contentserializer: Don't send the terminating \0 byte for strings
Fixes #3150
gdk/gdkcontentserializer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]