mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
standardize current directory path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39463 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0fbbec5fc3
commit
7027eba9bb
1 changed files with 4 additions and 2 deletions
|
@ -1066,8 +1066,10 @@ static NSStringEncoding defaultEncoding;
|
|||
|
||||
// Windows may count the trailing nul ... we don't want to.
|
||||
if (len > 0 && lpath[len] == 0) len--;
|
||||
path = [NSString stringWithCharacters: lpath length: len];
|
||||
currentDir = path;
|
||||
path = [[NSString alloc] initWithCharacters: lpath length: len];
|
||||
// Standardise to get rid of backslashes
|
||||
currentDir = [path stringByStandardizingPath];
|
||||
RELEASE(path);
|
||||
}
|
||||
free(lpath);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue