mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fix boundary error in replacement function
This commit is contained in:
parent
9189f1bca6
commit
91124f3247
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ UTextNSMutableStringReplace(UText *ut,
|
|||
// Setting the chunk length to 0 here forces UTextNSStringAccess to fetch
|
||||
// the data from the string object.
|
||||
ut->chunkLength = 0;
|
||||
UTextNSStringAccess(ut, r.location + [replacement length] + 1, TRUE);
|
||||
UTextNSStringAccess(ut, r.location + [replacement length], TRUE);
|
||||
ut->chunkOffset++;
|
||||
|
||||
[replacement release];
|
||||
|
|
Loading…
Reference in a new issue