* path.cc (normalize_win32_path): Don't add a trailing '\' if the cwd returns a

path with a trailing '\'.
This commit is contained in:
Christopher Faylor
2008-11-11 03:51:55 +00:00
parent dc74da050c
commit 6865f89087
2 changed files with 7 additions and 1 deletions

View File

@ -1346,7 +1346,8 @@ normalize_win32_path (const char *src, char *dst, char *&tail)
else
{
tail = strchr (tail, '\0');
*tail++ = '\\';
if (tail[-1] != '\\')
*tail++ = '\\';
}
}