X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=compat%2Finet_pton.c;h=8e0c4c1a83dd46cf305919babdc0f3fbe5d4045b;hb=e3750c979b0997b0b98e5d21a04f537a5e7f6a3b;hp=7d7200be5fa047073d8dfaf28744893dcce856f8;hpb=36ab287e77e9df059f261ed1cfb13fc4674182ec;p=vlc diff --git a/compat/inet_pton.c b/compat/inet_pton.c index 7d7200be5f..8e0c4c1a83 100644 --- a/compat/inet_pton.c +++ b/compat/inet_pton.c @@ -55,7 +55,7 @@ const char *inet_ntop (int af, const void *src, char *dst, int len) { case AF_INET: if (snprintf (dst, len, "%hhu.%hhu.%hhu.%hhu", - b[0], b[1], b[2], b[3]) <= len) + b[0], b[1], b[2], b[3]) >= len) { errno = ENOSPC; return NULL;