aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index f9a456a7b2..601d4f0f29 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -1230,7 +1230,7 @@ void ex_diffpatch(exarg_T *eap)
// have our own temp dir use that instead, it will be cleaned up when we
// exit (any .rej files created). Don't change directory if we can't
// return to the current.
- if ((os_dirname((char_u *)dirbuf, MAXPATHL) != OK)
+ if ((os_dirname(dirbuf, MAXPATHL) != OK)
|| (os_chdir(dirbuf) != 0)) {
dirbuf[0] = NUL;
} else {