mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
|
@ -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>
|
2011-03-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSAutoreleasePool.m: Clarify/add to comments about linked
|
* Source/NSAutoreleasePool.m: Clarify/add to comments about linked
|
||||||
|
|
|
@ -1664,7 +1664,7 @@ NSFullUserName(void)
|
||||||
|
|
||||||
[gnustep_global_lock lock];
|
[gnustep_global_lock lock];
|
||||||
pw = getpwnam([userName cString]);
|
pw = getpwnam([userName cString]);
|
||||||
if (*pw.pw_gecos)
|
if (pw->pw_gecos)
|
||||||
{
|
{
|
||||||
userName = [NSString stringWithUTF8String: pw->pw_gecos];
|
userName = [NSString stringWithUTF8String: pw->pw_gecos];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue