diff options
-rw-r--r-- | src/os_mswin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 6bffdb90b..77affc0c3 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -492,7 +492,7 @@ vim_stat(const char *name, struct stat *stp) char buf[_MAX_PATH + 1]; char *p; - vim_strncpy(buf, name, _MAX_PATH); + vim_strncpy((char_u *)buf, (char_u *)name, _MAX_PATH); p = buf + strlen(buf); if (p > buf) mb_ptr_back(buf, p); |