summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index a4c7744..8860cd1 100644
--- a/session.c
+++ b/session.c
@@ -338,7 +338,7 @@ void session_write(Ted *ted) {
success &= fclose(fp) == 0;
if (success) {
remove(filename2);
- rename(filename1, filename2); // overwrite old session
+ os_rename_overwrite(filename1, filename2); // overwrite old session
}
}
}