mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
OSD: fix oob write for Ctrl+K ("delete all to end of line").
git-svn-id: https://svn.eduke32.com/eduke32@5323 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ae56faf0ad
commit
c3fa10ab07
1 changed files with 2 additions and 1 deletions
|
@ -1090,7 +1090,8 @@ int32_t OSD_HandleChar(char ch)
|
|||
}
|
||||
return 0;
|
||||
case 11: // control k, delete all to end of line
|
||||
Bmemset(osd->editor.buf + osd->editor.pos, 0, OSDBUFFERSIZE - osd->editor.pos);
|
||||
Bmemset(osd->editor.buf + osd->editor.pos, 0, OSDEDITLENGTH - osd->editor.pos);
|
||||
osd->editor.len = osd->editor.pos;
|
||||
return 0;
|
||||
case 12: // control l, clear screen
|
||||
Bmemset(osd->text.buf, 0, OSDBUFFERSIZE);
|
||||
|
|
Loading…
Reference in a new issue