diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index fd9492ee..d7b28bc6 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -830,7 +830,7 @@ static int inet_pton4(const char *src, void *dst) { size_t numBytes; int ret = _socketInetAtonDetail(&base, &numBytes, src, (struct in_addr *)dst); - return (ret == 1 && base == 10 && numBytes == 4) ? 1 : 0; + return (ret == 1 && base == 10 && numBytes == 3) ? 1 : 0; } /* Copyright (c) 1996 by Internet Software Consortium.