mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
Tidied up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22977 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0dfcfd4814
commit
e40074f3db
19 changed files with 111 additions and 95 deletions
|
@ -892,7 +892,7 @@ static NSStringEncoding defaultEncoding;
|
|||
int len = GetCurrentDirectoryW(0, 0);
|
||||
if (len > 0)
|
||||
{
|
||||
_CHAR *lpath = (_CHAR*)calloc(len+10,sizeof(_CHAR));
|
||||
_CHAR *lpath = (_CHAR*)objc_calloc(len+10,sizeof(_CHAR));
|
||||
|
||||
if (lpath != 0)
|
||||
{
|
||||
|
@ -905,7 +905,7 @@ static NSStringEncoding defaultEncoding;
|
|||
path = [NSString stringWithCharacters: lpath length: len];
|
||||
currentDir = path;
|
||||
}
|
||||
free(lpath);
|
||||
objc_free(lpath);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue