mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
d14298591a
commit
ed6078f217
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue