diff options
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 830636fb66..bc2485afc6 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1530,7 +1530,7 @@ void write_viminfo(char_u *file, int forceit) #endif // Make tempname - tempname = modname(fname, (char_u *)".tmp", FALSE); + tempname = (char_u *)modname((char *)fname, ".tmp", FALSE); if (tempname != NULL) { /* * Check if tempfile already exists. Never overwrite an |