From a13f559600d7adfbd1533be1e513bf496350c353 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 8 May 1998 19:37:51 +0000 Subject: oops --- libexec/telnetd/telnetd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/telnetd/telnetd.c') diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 29ef75be734..89bcaf1116f 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: telnetd.c,v 1.11 1998/05/08 19:34:39 deraadt Exp $ */ +/* $OpenBSD: telnetd.c,v 1.12 1998/05/08 19:37:50 deraadt Exp $ */ /* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */ /* @@ -45,7 +45,7 @@ static char copyright[] = static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: telnetd.c,v 1.11 1998/05/08 19:34:39 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: telnetd.c,v 1.12 1998/05/08 19:37:50 deraadt Exp $"; #endif #endif /* not lint */ @@ -1158,7 +1158,7 @@ telnet(f, p, host) HN = getstr("hn", &cp); IM = getstr("im", &cp); if (HN && *HN) { - strcpy(host_name, HN, sizeof host_name - 1); + strncpy(host_name, HN, sizeof host_name - 1); host_name[sizeof host_name -1] = '\0'; } if (IM == 0) -- cgit v1.2.3