fix(windows): use narrow gia_strerror variant

This should fix a CMake compilation error on Windows.
This commit is contained in:
tpglitch committed 2026-11-09 15:33:40 -06:00
1 parent b06a67b950
commit bfb46759d5
1 file changed
+1 -1
+1 -1
View File
@@ -226,7 +226,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
int s = getaddrinfo(addrStr, portStr, &info, &addr);
if (s != 0) {
PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerror(s));
PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerrorA(s));
freeaddrinfo(addr);
free(addrPortStr);
free(sp);