From 7ccd202d369ffbee0b9803b3dadfdeac7c2a5962 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 5 Jan 2022 20:40:13 +1100 Subject: [PATCH] [client] main: fix out by one error in the bounds check for os type --- client/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];