diff --git a/ChangeLog b/ChangeLog index ff391d7bb..52fedb54a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-28 Riccardo Mottola + + * Source/NSPathUtilities.m: + safer and more portable pointer access + 2011-03-24 Richard Frith-Macdonald * Source/NSAutoreleasePool.m: Clarify/add to comments about linked diff --git a/Source/NSPathUtilities.m b/Source/NSPathUtilities.m index 8f9def23f..396d239d0 100644 --- a/Source/NSPathUtilities.m +++ b/Source/NSPathUtilities.m @@ -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]; }