mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -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…
Add table
Add a link
Reference in a new issue