unixfs: Only append '/' to base path if not already present in

UNIXFS_get_unix_path.
This commit is contained in:
Michael Jung 2006-01-31 18:03:45 +01:00 committed by Alexandre Julliard
parent 096000df90
commit e2d1c1038a
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath)
HeapFree(GetProcessHeap(), 0, pszUnixPath);
if (!pElement) return FALSE;
strcpy(szPath, pElement);
strcat(szPath, "/");
if (szPath[strlen(szPath)-1] != '/') strcat(szPath, "/");
free(pElement);
/* Append the part relative to the drive symbolic link target. */