([MemoryStream -readLine]): 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@1717 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-09-07 19:56:42 +00:00
parent a14adce278
commit 88c17ac136

View file

@ -164,7 +164,7 @@ static BOOL debug_memory_stream = NO;
if (nl)
{
int len = nl-buffer-prefix-position;
ret = (*objc_malloc)(len+1);
ret = objc_malloc (len+1);
strncpy(ret, buffer+prefix+position, len);
ret[len] = '\0';
position += len+1;