From 58d24da7f31458ede072ba0474fba6b7dc346b72 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 17 Jul 2026 21:29:52 -0400 Subject: [PATCH] [host] delete redundant / sizeof(char) `sizeof(char) == 1` always per standard, so this is redundant. --- host/platform/Windows/src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index d201f621..bd73b710 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -102,7 +102,7 @@ void winerr(void) char buf[256]; FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - buf, (sizeof(buf) / sizeof(char)), NULL); + buf, sizeof(buf), NULL); doLog("0x%08lx - %s", GetLastError(), buf); }