aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 873970fc39..132c84231f 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1179,7 +1179,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
// allow the user to access the undo file.
int perm = 0600;
if (buf->b_ffname != NULL) {
- perm = os_getperm((const char *)buf->b_ffname);
+ perm = os_getperm(buf->b_ffname);
if (perm < 0) {
perm = 0600;
}