mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(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:
parent
985271878a
commit
24eeb2c332
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue