Skip to content

Commit

Permalink
fix out of bounds array access (#441)
Browse files Browse the repository at this point in the history
Woops! Thanks!
  • Loading branch information
opsuu committed Jan 3, 2024
1 parent dda4e96 commit b0ffcc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/she/sdl2/sdl2_display.cpp
Expand Up @@ -273,7 +273,7 @@ namespace she {

void applyCursor(SDL_SystemCursor id)
{
if (id <= m_cursors.size()) {
if (id >= m_cursors.size()) {
m_cursors.resize(id + 1);
}
if (!m_cursors[id]) {
Expand Down

0 comments on commit b0ffcc2

Please sign in to comment.