Small bugfix in rewrite of property list stuff

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9908 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-05-09 08:19:35 +00:00
parent 4929fb8a89
commit c98dbed0bf
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@
* Tools/gdomap.c: Fixes to last modifications - provided by * Tools/gdomap.c: Fixes to last modifications - provided by
Chris B Vetter. Chris B Vetter.
* Source/NSString.m: Fix memory allocation of a unichar buffer to
correct size.
2001-05-04 Nicola Pero <n.pero@mi.flashnet.it> 2001-05-04 Nicola Pero <n.pero@mi.flashnet.it>

View file

@ -3118,7 +3118,7 @@ handle_printf_atsign (FILE *stream,
} }
else else
{ {
ustring = NSZoneMalloc(NSDefaultMallocZone(), length); ustring = NSZoneMalloc(NSDefaultMallocZone(), length*sizeof(unichar));
} }
end = &ustring[length]; end = &ustring[length];
[self getCharacters: ustring]; [self getCharacters: ustring];