aboutsummaryrefslogtreecommitdiff
path: root/src/state_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state_file.c')
-rw-r--r--src/state_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c
index d7dde658..de7fa2d0 100644
--- a/src/state_file.c
+++ b/src/state_file.c
@@ -58,7 +58,7 @@ state_file_write(struct player_control *pc)
fp = fopen(state_file_path, "w");
if (G_UNLIKELY(!fp)) {
g_warning("failed to create %s: %s",
- state_file_path, strerror(errno));
+ state_file_path, g_strerror(errno));
return;
}
@@ -86,7 +86,7 @@ state_file_read(struct player_control *pc)
fp = fopen(state_file_path, "r");
if (G_UNLIKELY(!fp)) {
g_warning("failed to open %s: %s",
- state_file_path, strerror(errno));
+ state_file_path, g_strerror(errno));
return;
}