terminal: Do not call toupper with potentially out-of-range values.
commit9e30ee631ced843f26a264c351cfa1716e7e1941
authorKalle Olavi Niemitalo <kon@iki.fi>
Sat, 5 Aug 2006 10:30:00 +0000 (5 13:30 +0300)
committerMiciah Dashiel Butler Masters <miciah@FroodyComp.localdomain>
Sun, 6 Aug 2006 20:02:38 +0000 (6 20:02 +0000)
treea900f93fca08901b58cdc200e920a25b8c738381
parent50603fc66cc8f8f55900dd81a2a408f865539cc5
terminal: Do not call toupper with potentially out-of-range values.

For instance, if Ctrl-F1 were pressed and src/terminal/kbd.c supported it,
then toupper(KBD_F1) would be called, resulting in undefined behaviour.
src/terminal/kbd.c does not support such combinations yet, but it is
safest to fix the bug already.
src/terminal/event.c