Revert code!

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9648 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-04-20 17:02:49 +00:00
parent c0a04507c3
commit 555c532732
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2001-04-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSData.m ([NSMutableDataMalloc
-replaceBytesInRange:withBytes:]): Check length, not capacity!
* Source/NSInvocation.m: _get_arg() indirection fix suggested by
Michael Scheibler.

View file

@ -2709,7 +2709,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
{
unsigned need = NSMaxRange(aRange);
if (aRange.location > capacity)
if (aRange.location > length)
{
[NSException raise: NSRangeException
format: @"location bad in replaceByteInRange:withBytes:"];