From 610b68f9df09f8ffc16c11ec1479a2fed973bf1b Mon Sep 17 00:00:00 2001 From: mccallum Date: Sat, 7 Sep 1996 20:00:37 +0000 Subject: [PATCH] ([NSMutableData -initWithCapacity:]): In accordance with Objective C runtime change, use objc_malloc as a function, not a function pointer. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1720 72102866-910b-0410-8b05-ffd578937521 --- Source/NSData.m | 2 +- Source/NSMutableData.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSData.m b/Source/NSData.m index 7fcdaf711..3f2358aaf 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -511,7 +511,7 @@ static Class NSMutableData_concrete_class; - (id) initWithCapacity: (unsigned int)capacity { - return [self initWithBytesNoCopy:(*objc_malloc)(capacity) + return [self initWithBytesNoCopy: objc_malloc (capacity) length:capacity]; } diff --git a/Source/NSMutableData.m b/Source/NSMutableData.m index 5a1ab209c..e327d013f 100644 --- a/Source/NSMutableData.m +++ b/Source/NSMutableData.m @@ -41,7 +41,7 @@ - (id) initWithCapacity: (unsigned int)capacity { - return [self initWithBytesNoCopy:(*objc_malloc)(capacity) + return [self initWithBytesNoCopy: objc_malloc (capacity) length:capacity]; }