mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
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:
parent
a879c34f2d
commit
587f8f5666
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue