(set_paths) [_WIN32]: Add a comment to explain the use of _fullpath().

This commit is contained in:
Ron Koenderink 2007-07-21 00:50:32 +00:00
parent be8e1d068e
commit bca365c485

View file

@ -181,6 +181,7 @@ set_paths(char *econfig)
char *cwd = getcwd(NULL, 0); char *cwd = getcwd(NULL, 0);
#ifdef _WIN32 #ifdef _WIN32
/* normalize path separator to '\\', for easier searching: */
econfig = _fullpath(NULL, econfig, 0); econfig = _fullpath(NULL, econfig, 0);
slash = strrchr(econfig, '\\'); slash = strrchr(econfig, '\\');
configdir = malloc(slash - econfig + 1); configdir = malloc(slash - econfig + 1);