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:
Adam Fedor 1997-12-11 19:09:56 +00:00
parent abd9af2aa3
commit d286ed38b2
21 changed files with 85 additions and 92 deletions

View file

@ -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];