diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-24 08:35:42 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-24 08:35:42 +0100 |
| commit | 81680583fd5af8a1fd9b1ee30d5fa3dfc073832a (patch) | |
| tree | a31b0d5a13d6cf28119a1cb852cfc8961d808f67 | |
| parent | e080e0e3253a079ac755bb6d21ff08a6ccd96815 (diff) | |
| download | puzzles-81680583fd5af8a1fd9b1ee30d5fa3dfc073832a.zip puzzles-81680583fd5af8a1fd9b1ee30d5fa3dfc073832a.tar.gz puzzles-81680583fd5af8a1fd9b1ee30d5fa3dfc073832a.tar.bz2 puzzles-81680583fd5af8a1fd9b1ee30d5fa3dfc073832a.tar.xz | |
GTK save_prefs: fix a wrongly sourced error report.
After a failed rename(), we should find out what went wrong by looking
in errno itself, not in wctx->error which reported a problem in the
previous step.
| -rw-r--r-- | gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3079,7 +3079,7 @@ static char *save_prefs(frontend *fe) } if (rename(tmp_path, file_path) < 0) { - const char *os_err = strerror(wctx->error); + const char *os_err = strerror(errno); sprintf(err = snewn(256 + strlen(tmp_path) + strlen(file_path) + strlen(os_err), char), "Unable to save preferences:\n" |