Fix detection of the charset in XML data

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2016-09-19 15:56:51 +00:00
parent f5641389f0
commit b1c979898d
3 changed files with 14 additions and 3 deletions

View file

@ -4764,7 +4764,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
{
/* Extract the charset and return it.
*/
r = NSMakeRange(index, r.length - index);
r = NSMakeRange(index, r.location - index);
return [xml substringWithRange: r];
}
}