From 4e9fd4a5637db052b69f7859040ed8592705e29d Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Sat, 7 Sep 1996 20:00:12 +0000 Subject: [PATCH] ([NSGMutableData -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@1719 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGData.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }