Merge branch 'wip/otte/for-master' into 'master'

textbuffer: Don't serialize the \0 byte

See merge request GNOME/gtk!2672
This commit is contained in:
Benjamin Otte 2020-10-07 20:33:25 +00:00
commit bc5723a846

View File

@ -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,