mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
c0a04507c3
commit
555c532732
2 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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:"];
|
||||
|
|
Loading…
Reference in a new issue