mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix buffer overflow
This commit is contained in:
parent
bb4bcaff9d
commit
e782157ad7
1 changed files with 1 additions and 1 deletions
|
@ -1632,7 +1632,7 @@ static BOOL snuggleStart(NSString *t)
|
|||
unsigned len = optr - buf;
|
||||
unichar c[len + 1];
|
||||
|
||||
memcpy(c, buf, (len+1)*sizeof(unichar));
|
||||
memcpy(c, buf, len*sizeof(unichar));
|
||||
c[len-2] = ' ';
|
||||
c[len-1] = '/';
|
||||
c[len] = '>';
|
||||
|
|
Loading…
Reference in a new issue