Test and refactor gettail_sep -> path_tail_with_seperator.

This commit is contained in:
Thomas Wienecke
2014-03-30 15:30:10 +02:00
committed by Thiago de Arruda
parent 77bfb6cd99
commit 7021b970b9
7 changed files with 55 additions and 24 deletions

View File

@@ -1609,7 +1609,7 @@ int vim_chdirfile(char_u *fname)
char_u dir[MAXPATHL];
vim_strncpy(dir, fname, MAXPATHL - 1);
*gettail_sep(dir) = NUL;
*path_tail_with_seperator(dir) = NUL;
return os_chdir((char *)dir) == 0 ? OK : FAIL;
}
#endif