aboutsummaryrefslogtreecommitdiff
path: root/networking/nslookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/nslookup.c')
-rw-r--r--networking/nslookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c
index 89a2d6481..cc5ff95d6 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -82,7 +82,7 @@ static int print_host(const char *hostname, const char *header)
82 while (cur) { 82 while (cur) {
83 sockaddr_to_dotted(cur->ai_addr, str, sizeof(str)); 83 sockaddr_to_dotted(cur->ai_addr, str, sizeof(str));
84 printf("%s %s\nAddress: %s", header, hostname, str); 84 printf("%s %s\nAddress: %s", header, hostname, str);
85 s[0] = ' '; 85 str[0] = ' ';
86 if (getnameinfo(cur->ai_addr, cur->ai_addrlen, str+1, sizeof(str)-1, NULL, 0, NI_NAMEREQD)) 86 if (getnameinfo(cur->ai_addr, cur->ai_addrlen, str+1, sizeof(str)-1, NULL, 0, NI_NAMEREQD))
87 str[0] = '\0'; 87 str[0] = '\0';
88 puts(str); 88 puts(str);