Expand ~/ and relative path in pathnames

This commit is contained in:
Stas Degteff 2005-11-05 11:15:58 +00:00
parent 77706fca47
commit 5fb85baf53

View File

@ -317,6 +317,7 @@ void TouchFile(const char* filename) {
char* PathCopy(char* __dst, const char* __src) {
strschg_environ(strxcpy(__dst, __src, sizeof(Path)));
getcwd(__dst, sizeof(Path)); // expand ~/ & etc.
return AddBackslash(__dst);
}