fix buffer size error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33989 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-10-14 13:48:13 +00:00
parent a879c34f2d
commit 587f8f5666

View file

@ -2865,7 +2865,7 @@ handle_printf_atsign (FILE *stream,
unsigned l;
l = [self length];
m = [NSMutableData dataWithLength: l + 1];
m = [NSMutableData dataWithLength: (l + 1) * sizeof(unichar)];
u = (unichar*)[m mutableBytes];
[self getCharacters: u];
u[l] = 0;