inspector: Fix saving css

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

View File

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