From 107448698fc078bbd4cdbacdfbf51298ddc9ea65 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 17 Aug 2003 12:03:40 +0000 Subject: [PATCH] Compilation fix. --- lib/fake-getnameinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5