mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] main: fix out by one error in the bounds check for os type
This commit is contained in:
@@ -1342,7 +1342,7 @@ restart:
|
||||
};
|
||||
|
||||
const char * type;
|
||||
if (osInfo->os > ARRAY_LENGTH(typeStr))
|
||||
if (osInfo->os >= ARRAY_LENGTH(typeStr))
|
||||
type = "Unknown";
|
||||
else
|
||||
type = typeStr[osInfo->os];
|
||||
|
Reference in New Issue
Block a user