mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* 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:
parent
9a78fab576
commit
852f0519af
2 changed files with 6 additions and 1 deletions
|
@ -3329,7 +3329,7 @@ handle_printf_atsign (FILE *stream,
|
|||
}
|
||||
}
|
||||
|
||||
NSZoneRealloc(NSDefaultMallocZone(), buff, j);
|
||||
buff = NSZoneRealloc(NSDefaultMallocZone(), buff, j);
|
||||
|
||||
return [NSDataClass dataWithBytesNoCopy: buff
|
||||
length: j];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue