mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Simplify configure, quiet warnings (from Wacko).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
abd9af2aa3
commit
d286ed38b2
21 changed files with 85 additions and 92 deletions
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <objc/objc-api.h>
|
||||
#include <gnustep/base/preface.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSPathUtilities.h>
|
||||
|
@ -94,7 +95,7 @@ NSHomeDirectoryForUser (NSString *login_name)
|
|||
if (n > 1024)
|
||||
{
|
||||
/* Buffer not big enough, so dynamically allocate it */
|
||||
nb = (char *)malloc(sizeof(char)*(n+1));
|
||||
nb = (char *)objc_malloc(sizeof(char)*(n+1));
|
||||
n = GetEnvironmentVariable("HOMEPATH", nb, n+1);
|
||||
nb[n] = '\0';
|
||||
s = [NSString stringWithCString: nb];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue