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:
rfm 2011-10-14 13:48:13 +00:00
parent d14298591a
commit ed6078f217

View file

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