mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
([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:
parent
a14adce278
commit
88c17ac136
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue