1
0
forked from aniani/vim

updated for version 7.0111

This commit is contained in:
Bram Moolenaar
2005-07-20 21:56:21 +00:00
parent 6a9aa37a3e
commit 84110acb60

View File

@@ -492,7 +492,7 @@ vim_stat(const char *name, struct stat *stp)
char buf[_MAX_PATH + 1]; char buf[_MAX_PATH + 1];
char *p; char *p;
vim_strncpy(buf, name, _MAX_PATH); vim_strncpy((char_u *)buf, (char_u *)name, _MAX_PATH);
p = buf + strlen(buf); p = buf + strlen(buf);
if (p > buf) if (p > buf)
mb_ptr_back(buf, p); mb_ptr_back(buf, p);