* Source/NSString: (dataUsingEncoding:allowLossyConversion:):

Use buffer returned by NSZoneRealloc to create the data object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21763 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2005-10-01 07:48:36 +00:00
parent 9a78fab576
commit 852f0519af
2 changed files with 6 additions and 1 deletions

View file

@ -3329,7 +3329,7 @@ handle_printf_atsign (FILE *stream,
}
}
NSZoneRealloc(NSDefaultMallocZone(), buff, j);
buff = NSZoneRealloc(NSDefaultMallocZone(), buff, j);
return [NSDataClass dataWithBytesNoCopy: buff
length: j];