summaryrefslogtreecommitdiff
path: root/networking/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/telnet.c')
-rw-r--r--networking/telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index 7a7bcfb..fff8c06 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -650,7 +650,7 @@ static int remote_connect(struct in_addr addr, int port)
if (connect(s, (struct sockaddr *)&s_addr, sizeof s_addr) < 0)
{
- error_msg_and_die("Unable to connect to remote host: %s\n", strerror(errno));
+ perror_msg_and_die("Unable to connect to remote host");
}
return s;
}