mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
7311c3d693
commit
9c59b7aeb8
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue