mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
1420c8b6be
commit
4e29676292
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue