mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
fix error in method name used in exception format string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
83cf4ab39f
commit
2d306c7aa5
1 changed files with 8 additions and 7 deletions
|
@ -2070,17 +2070,18 @@ failure:
|
|||
}
|
||||
if (aRange.length > 0)
|
||||
{
|
||||
void *buf = [self mutableBytes];
|
||||
void *buf;
|
||||
|
||||
if (need > size)
|
||||
{
|
||||
[self setLength: need];
|
||||
}
|
||||
buf = [self mutableBytes];
|
||||
if (0 == buf)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"missing bytes in replaceBytesInRange:withBytes:"];
|
||||
}
|
||||
if (need > size)
|
||||
{
|
||||
[self setLength: need];
|
||||
}
|
||||
memmove(buf + aRange.location, bytes, aRange.length);
|
||||
}
|
||||
}
|
||||
|
@ -2103,7 +2104,7 @@ failure:
|
|||
if (aRange.location > size)
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"location bad in replaceByteInRange:withBytes:"];
|
||||
format: @"location bad in replaceByteInRange:withBytes:length:"];
|
||||
}
|
||||
if (need > size)
|
||||
{
|
||||
|
@ -2113,7 +2114,7 @@ failure:
|
|||
if (0 == buf)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"missing bytes in replaceByteInRange:withBytes:"];
|
||||
format: @"missing bytes in replaceByteInRange:withBytes:length:"];
|
||||
}
|
||||
if (shift < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue