* 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:
David Ayers 2005-10-01 07:48:36 +00:00
parent c046636232
commit 839793e442
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-01 David Ayers <d.ayers@inode.at>
* Source/NSString: (dataUsingEncoding:allowLossyConversion:):
Use buffer returned by NSZoneRealloc to create the data object.
2005-09-29 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepBase/unicode/gsm0338.h: Map unicode

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];