diff --git a/Source/NSData.m b/Source/NSData.m index c36a78d4d..319764581 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -1624,7 +1624,7 @@ failure: { [self setLength: need]; } - memcpy([self mutableBytes] + aRange.location, bytes, aRange.length); + memmove([self mutableBytes] + aRange.location, bytes, aRange.length); } }