Compilation fix.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Aug 2003 12:03:40 +0000 (12:03 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 17 Aug 2003 12:03:40 +0000 (12:03 +0000)
lib/fake-getnameinfo.c

index a0e1df33752ba27564388871ca6cf1c6e74dd631..796efdf80cdf3c527024ce387630426954cd6b9e 100644 (file)
@@ -35,7 +35,7 @@ int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t host
                return 0;
 
        if(flags & NI_NUMERICHOST) {
-               len = snprintf((host, hostlen, "%s", inet_ntoa(sin->sin_addr));
+               len = snprintf(host, hostlen, "%s", inet_ntoa(sin->sin_addr));
                if(len < 0 || len >= hostlen)
                        return EAI_MEMORY;
                return 0;
@@ -46,7 +46,7 @@ int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t host
        if(!hp || !hp->h_name || !hp->h_name[0])
                return EAI_NODATA;
        
-       len = snprintf((host, hostlen, "%s", hp->h_name);
+       len = snprintf(host, hostlen, "%s", hp->h_name);
        if(len < 0 || len >= hostlen)
                return EAI_MEMORY;