From: Guus Sliepen Date: Sun, 17 Aug 2003 12:03:40 +0000 (+0000) Subject: Compilation fix. X-Git-Tag: release-1.0.2~40 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=107448698fc078bbd4cdbacdfbf51298ddc9ea65;p=tinc Compilation fix. --- diff --git a/lib/fake-getnameinfo.c b/lib/fake-getnameinfo.c index a0e1df33..796efdf8 100644 --- a/lib/fake-getnameinfo.c +++ b/lib/fake-getnameinfo.c @@ -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;