From e4afd9c6e2ffff8348dec67589eb891ddf043ec5 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 13 Sep 1997 02:02:42 +0000 Subject: [PATCH] missing important line :-( git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3493 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnet/commands.c | 1 + 1 file changed, 1 insertion(+) diff --git a/appl/telnet/telnet/commands.c b/appl/telnet/telnet/commands.c index d69ec337e..129e8f29d 100644 --- a/appl/telnet/telnet/commands.c +++ b/appl/telnet/telnet/commands.c @@ -2143,6 +2143,7 @@ tn(int argc, char **argv) host = gethostbyname(hostp); #endif if (host) { + strncpy(_hostname, host->h_name, sizeof(_hostname)); family = host->h_addrtype; switch(family) {