Tiny bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4915 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-20 04:48:16 +00:00
parent 6fcd4c9e28
commit d5515c9453
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Sun Sep 20 6:07:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* NSString.m: Fix bug in ([+stringByStandardizingPath]) with trailing
slash.
Thu Sep 16 19:20:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Change request from Helge

View file

@ -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++;