From 087935f1601ab5bcfc5d7089d4c1ecf5503822c8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 May 2021 11:16:52 -0400 Subject: [PATCH] print-editor: Fix saving g_file_replace_contents() does not accept -1 as length, unlike similar apis. --- demos/print-editor/print-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/print-editor/print-editor.c b/demos/print-editor/print-editor.c index 2ac806df2f..27202dd2ee 100644 --- a/demos/print-editor/print-editor.c +++ b/demos/print-editor/print-editor.c @@ -159,7 +159,7 @@ save_file (GFile *save_filename) error = NULL; g_file_replace_contents (save_filename, - text, -1, + text, strlen (text), NULL, FALSE, G_FILE_CREATE_NONE, NULL,