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,