vlc | branch: master | Naohiro KORIYAMA <[email protected]> | Sat Dec 3 11:45:36 2011 +0900| [6d0a1fce490cf2d4c9f23f6c0781efc91fa794b6] | committer: Rémi Denis-Courmont
inet_ntop always returns NULL on Windows. Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d0a1fce490cf2d4c9f23f6c0781efc91fa794b6 --- compat/inet_pton.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compat/inet_pton.c b/compat/inet_pton.c index 7d7200b..8e0c4c1 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; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
