[client] main: fix out by one error in the bounds check for os type

This commit is contained in:
Geoffrey McRae 2022-01-05 20:40:13 +11:00
parent 177a997883
commit 7ccd202d36

View File

@ -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];