mirror of
https://github.com/glfw/glfw
synced 2026-09-27 00:28:42 +03:00
Merge 712c174250 into 92dcf4ce74
This commit is contained in:
commit
ba39770596
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ static GLFWbool loadCursorTheme(void)
|
|||
{
|
||||
errno = 0;
|
||||
const long cursorSizeLong = strtol(sizeString, NULL, 10);
|
||||
if (errno == 0 && cursorSizeLong > 0 && cursorSizeLong < INT_MAX)
|
||||
if (errno == 0 && cursorSizeLong > 0 && cursorSizeLong < INT_MAX / 2)
|
||||
cursorSize = (int) cursorSizeLong;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue