--- path.cc 3 Dec 2004 02:00:37 -0000 1.326 +++ path.cc 15 Dec 2004 22:57:25 -0000 @@ -555,6 +555,7 @@ path_conv::check (const char *src, unsig } /* Remove trailing dots and spaces which are ignored by Win32 function s but not by native NT functions. */ + char *tmpTail = tail; while (tail[-1] == '.' || tail[-1] == ' ') tail--; if (tail > path_copy + 1 && isslash (tail[-1])) @@ -562,6 +563,7 @@ path_conv::check (const char *src, unsig error = ENOENT; return; } + tail = tmpTail; } path_end = tail; *tail = '\0';