mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] main: fix out by one error in the bounds check for os type
This commit is contained in:
parent
177a997883
commit
7ccd202d36
@ -1342,7 +1342,7 @@ restart:
|
|||||||
};
|
};
|
||||||
|
|
||||||
const char * type;
|
const char * type;
|
||||||
if (osInfo->os > ARRAY_LENGTH(typeStr))
|
if (osInfo->os >= ARRAY_LENGTH(typeStr))
|
||||||
type = "Unknown";
|
type = "Unknown";
|
||||||
else
|
else
|
||||||
type = typeStr[osInfo->os];
|
type = typeStr[osInfo->os];
|
||||||
|
Loading…
Reference in New Issue
Block a user