From 8b793729fcf6e2b57a133498e4df3195488da6ef Mon Sep 17 00:00:00 2001 From: jarulo Date: Tue, 29 May 2018 20:48:30 +0200 Subject: [PATCH] Fix inet_pton4 --- nx/source/runtime/devices/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.