Merge branch 'file-replace-trap' into 'master'
print-editor: Fix saving See merge request GNOME/gtk!3536
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -192,7 +192,7 @@ save_to_file (GtkInspectorCssEditor *ce,
|
||||
|
||||
text = get_current_text (ce->priv->text);
|
||||
|
||||
g_file_replace_contents (file, text, -1,
|
||||
g_file_replace_contents (file, text, strlen (text),
|
||||
NULL,
|
||||
FALSE,
|
||||
G_FILE_CREATE_NONE,
|
||||
|
||||
Reference in New Issue
Block a user