Mercurial > vim
comparison src/os_mswin.c @ 427:73e8af3a49e7
updated for version 7.0111
author | vimboss |
---|---|
date | Wed, 20 Jul 2005 21:56:21 +0000 |
parents | 8f41fe56e2fc |
children | 9595cf1d80a7 |
comparison
equal
deleted
inserted
replaced
426:eaf8b83ac767 | 427:73e8af3a49e7 |
---|---|
490 vim_stat(const char *name, struct stat *stp) | 490 vim_stat(const char *name, struct stat *stp) |
491 { | 491 { |
492 char buf[_MAX_PATH + 1]; | 492 char buf[_MAX_PATH + 1]; |
493 char *p; | 493 char *p; |
494 | 494 |
495 vim_strncpy(buf, name, _MAX_PATH); | 495 vim_strncpy((char_u *)buf, (char_u *)name, _MAX_PATH); |
496 p = buf + strlen(buf); | 496 p = buf + strlen(buf); |
497 if (p > buf) | 497 if (p > buf) |
498 mb_ptr_back(buf, p); | 498 mb_ptr_back(buf, p); |
499 if (p > buf && (*p == '\\' || *p == '/') && p[-1] != ':') | 499 if (p > buf && (*p == '\\' || *p == '/') && p[-1] != ':') |
500 *p = NUL; | 500 *p = NUL; |