mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
6fcd4c9e28
commit
d5515c9453
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue