diff options
author | Denis Vlasenko | 2006-11-10 23:25:53 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-10 23:25:53 +0000 |
commit | 067e3f031a2107c69d287d89b9543fbfe5c0a571 (patch) | |
tree | 35edda4508915e2b454d0c0ec48cd548deccd744 /networking/nslookup.c | |
parent | 07159f0f0e2188b1ce3bf7bc6b282f08986fd5ee (diff) | |
download | busybox-067e3f031a2107c69d287d89b9543fbfe5c0a571.zip busybox-067e3f031a2107c69d287d89b9543fbfe5c0a571.tar.gz |
wget: fix error message.
Bad:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
: HTTP/1.0 404 Not Foundror 404 Not Found
Good:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
get: server returned error: HTTP/1.0 404 Not Found
nslookup: fix my mistake
applets: make Bernhard Fischer <rep.nop@aon.at> happy :)
Diffstat (limited to 'networking/nslookup.c')
-rw-r--r-- | networking/nslookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c index 89a2d64..cc5ff95 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -82,7 +82,7 @@ static int print_host(const char *hostname, const char *header) while (cur) { sockaddr_to_dotted(cur->ai_addr, str, sizeof(str)); printf("%s %s\nAddress: %s", header, hostname, str); - s[0] = ' '; + str[0] = ' '; if (getnameinfo(cur->ai_addr, cur->ai_addrlen, str+1, sizeof(str)-1, NULL, 0, NI_NAMEREQD)) str[0] = '\0'; puts(str); |