git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37934 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-06-01 18:08:44 +00:00
parent 94320d3388
commit 9e17f30f8b
4 changed files with 22 additions and 4 deletions

View file

@ -2068,9 +2068,9 @@ bases:
uint8_t *tmp;
#if GS_WITH_GC
tmp = NSAllocateCollectable(slen, 0);
tmp = NSAllocateCollectable(slen + extra, 0);
#else
tmp = NSZoneMalloc(zone, slen);
tmp = NSZoneMalloc(zone, slen + extra);
if (ptr != buf && ptr != *dst)
{
NSZoneFree(zone, ptr);