summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-11-17 22:49:05 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-11-17 22:49:05 +0000
commitb635736ac2ec78dcaeb78babe2c1716ef2468c65 (patch)
tree84b0c82b979487f83b956411a69a72079fc11bed
parentba081bf119adf0aae8a488706741411f6520f7d3 (diff)
parent3003f37e9de90ba17d9be9710d69fdfde931a994 (diff)
downloadgtk+-b635736ac2ec78dcaeb78babe2c1716ef2468c65.tar.gz
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'
node-editor: fix length of text during save See merge request GNOME/gtk!2859
-rw-r--r--demos/node-editor/node-editor-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/node-editor/node-editor-window.c b/demos/node-editor/node-editor-window.c
index ff536d60ca..bf1660d6f8 100644
--- a/demos/node-editor/node-editor-window.c
+++ b/demos/node-editor/node-editor-window.c
@@ -465,7 +465,7 @@ save_response_cb (GtkWidget *dialog,
text = get_current_text (self->text_buffer);
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
- g_file_replace_contents (file, text, -1,
+ g_file_replace_contents (file, text, strlen (text),
NULL, FALSE,
G_FILE_CREATE_NONE,
NULL,