mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fax varname clashn in last modification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20741 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e6ee5f6b4f
commit
10e124887a
1 changed files with 3 additions and 3 deletions
|
@ -1839,13 +1839,13 @@ static NSFileManager* defaultManager = nil;
|
|||
- (NSString*) pathContentOfSymbolicLinkAtPath: (NSString*)path
|
||||
{
|
||||
#ifdef HAVE_READLINK
|
||||
char lpath[PATH_MAX];
|
||||
char buf[PATH_MAX];
|
||||
const char* lpath = [self fileSystemRepresentationWithPath: path];
|
||||
int llen = readlink(lpath, lpath, PATH_MAX-1);
|
||||
int llen = readlink(lpath, buf, PATH_MAX-1);
|
||||
|
||||
if (llen > 0)
|
||||
{
|
||||
return [self stringWithFileSystemRepresentation: lpath length: llen];
|
||||
return [self stringWithFileSystemRepresentation: buf length: llen];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue