summaryrefslogtreecommitdiff
path: root/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'telnet.c')
-rw-r--r--telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telnet.c b/telnet.c
index 7a7bcfb..fff8c06 100644
--- a/telnet.c
+++ b/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;
}