print-editor: Fix saving

g_file_replace_contents() does not accept -1 as
length, unlike similar apis.
This commit is contained in:
Matthias Clasen 2021-05-09 11:16:52 -04:00
parent dc878f24d2
commit 087935f160

View File

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