diff --git a/Source/NSGData.m b/Source/NSGData.m index ff1535bba..52c41f53e 100644 --- a/Source/NSGData.m +++ b/Source/NSGData.m @@ -127,7 +127,7 @@ /* Make sure we do this, and not what MemoryStream says. */ - (id) initWithCapacity: (unsigned int)capacity { - return [self initWithBytesNoCopy:(*objc_malloc)(capacity) + return [self initWithBytesNoCopy: objc_malloc (capacity) length:capacity]; }