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