forked from AuroraMiddleware/gtk
print-editor: Fix saving
g_file_replace_contents() does not accept -1 as length, unlike similar apis.
This commit is contained in:
parent
dc878f24d2
commit
087935f160
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user