From 5fb85baf535a30cec3fdc8e8f1d4f8fc90f0b5de Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 5 Nov 2005 11:15:58 +0000 Subject: [PATCH] Expand ~/ and relative path in pathnames --- goldlib/gall/gfilutl1.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/goldlib/gall/gfilutl1.cpp b/goldlib/gall/gfilutl1.cpp index 16c32e2..1d7eb48 100644 --- a/goldlib/gall/gfilutl1.cpp +++ b/goldlib/gall/gfilutl1.cpp @@ -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); }