diff --git a/ChangeLog b/ChangeLog index 274bf153b..351ca89e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 20 6:07:00 1999 Richard Frith-Macdonald + + * NSString.m: Fix bug in ([+stringByStandardizingPath]) with trailing + slash. + Thu Sep 16 19:20:00 1999 Richard Frith-Macdonald Change request from Helge diff --git a/Source/NSString.m b/Source/NSString.m index 55fe49a36..b72b331fc 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -2066,15 +2066,14 @@ handle_printf_atsign (FILE *stream, range: r]).length) { unsigned length = [s length]; - unichar c1 = [s characterAtIndex: r.location + 1]; if (r.location + r.length + 1 <= length - && pathSepMember(c1) == YES) + && pathSepMember([s characterAtIndex: r.location + 1]) == YES) { [s deleteCharactersInRange: r]; } else if (r.location + r.length + 2 <= length - && c1 == (unichar)'.' + && [s characterAtIndex: r.location + 1] == (unichar)'.' && pathSepMember([s characterAtIndex: r.location + 2]) == YES) { r.length++;