safer and more portable pointer access

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32717 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2011-03-28 08:50:45 +00:00
parent 7311c3d693
commit 9c59b7aeb8
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-03-28 Riccardo Mottola <rm@gnu.org>
* Source/NSPathUtilities.m:
safer and more portable pointer access
2011-03-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSAutoreleasePool.m: Clarify/add to comments about linked

View file

@ -1664,7 +1664,7 @@ NSFullUserName(void)
[gnustep_global_lock lock];
pw = getpwnam([userName cString]);
if (*pw.pw_gecos)
if (pw->pw_gecos)
{
userName = [NSString stringWithUTF8String: pw->pw_gecos];
}