inspector: Fix saving css
g_file_replace_contents() does not accept -1 as length, unlike similar apis.
This commit is contained in:
@@ -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