Further correction to latin1 conversion

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39299 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-01-21 12:42:43 +00:00
parent 887ec65251
commit 5b574299e7

View file

@ -5904,7 +5904,7 @@ literalIsEqual(NXConstantString *self, id anObject)
/* If all the characters are latin1 we can copy them efficiently.
*/
p = b = NSAllocateCollectable(length, 0);
while (i < length)
while (i < nxcslen)
{
*p++ = (uint8_t)nextUTF8((const uint8_t *)nxcsptr, nxcslen, &i, &n);
}