From ff62ff2d403e65037f2e224a43ccc2005b6c0965 Mon Sep 17 00:00:00 2001 From: mccallum Date: Sat, 7 Sep 1996 20:07:01 +0000 Subject: [PATCH] ([MemoryStream -writeBytes:length:]): In accordance with Objective C runtime change, use objc_realloc as a function, not a function pointer. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1726 72102866-910b-0410-8b05-ffd578937521 --- Source/MemoryStream.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/MemoryStream.m b/Source/MemoryStream.m index f0447a5b2..96ea2aefd 100644 --- a/Source/MemoryStream.m +++ b/Source/MemoryStream.m @@ -139,7 +139,7 @@ static BOOL debug_memory_stream = NO; if (prefix+position+l > size) { size = MAX(prefix+position+l, size*2); - buffer = (*objc_realloc)(buffer, size); + buffer = objc_realloc (buffer, size); } memcpy(buffer+prefix+position, b, l); position += l; @@ -287,7 +287,7 @@ void unchar_func(void *s, int c) { if (s > prefix + eofPosition) { - buffer = (*objc_realloc)(buffer, s); + buffer = objc_realloc (buffer, s); size = s; } }