diff --git a/client/src/main.c b/client/src/main.c index 3735c9ae..d537d3c2 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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];