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:
Richard Frith-MacDonald 2014-01-05 17:22:45 +00:00
parent 83cf4ab39f
commit 2d306c7aa5

View file

@ -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)
{