(replaceBytesInRange:withBytes:): Get pointer with -mutableBytes, not

-bytes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@393 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-17 21:31:59 +00:00
parent 985271878a
commit 24eeb2c332

View file

@ -323,7 +323,7 @@
- (void) replaceBytesInRange: (NSRange)aRange
withBytes: (const void*)bytes
{
memcpy([self bytes] + aRange.location, bytes, aRange.length);
memcpy([self mutableBytes] + aRange.location, bytes, aRange.length);
}
- (void) resetBytesInRange: (NSRange)aRange