Fix crash when forming union

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20879 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-03-09 17:05:36 +00:00
parent 29131e7028
commit 627669a03b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-03-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCharacterSet.m: Fix bug in forming union ... was using
wrong length.
2005-03-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCharacterSetData.h: Add data outside unicode base plane.

View file

@ -338,7 +338,7 @@
_length = other_length;
_data = [_obj mutableBytes];
}
for (i = 0; i < _length; i++)
for (i = 0; i < other_length; i++)
{
_data[i] = (_data[i] | other_bytes[i]);
}