mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-28 15:52:39 +02:00
Fix inet_pton4
This commit is contained in:
parent
ad4af954c2
commit
8b793729fc
@ -830,7 +830,7 @@ static int inet_pton4(const char *src, void *dst) {
|
|||||||
size_t numBytes;
|
size_t numBytes;
|
||||||
|
|
||||||
int ret = _socketInetAtonDetail(&base, &numBytes, src, (struct in_addr *)dst);
|
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.
|
/* Copyright (c) 1996 by Internet Software Consortium.
|
||||||
|
Loading…
Reference in New Issue
Block a user