qnx: fixed potential buffer overflow.
This commit is contained in:
parent
14c4ea3981
commit
8afa42a3b8
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ handleKeyboardEvent(screen_event_t event)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip unrecognized keys.
|
// Skip unrecognized keys.
|
||||||
if ((val < 0) || (val > (sizeof(key_to_sdl) / sizeof(int)))) {
|
if ((val < 0) || (val >= SDL_TABLESIZE(key_to_sdl))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue