summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-01-21 22:46:37 +0000
committeraaron <aaron@openbsd.org>2001-01-21 22:46:37 +0000
commit2caec76e29964a7f35d0cf2e140b05f2707ddc11 (patch)
tree813f3bc7d0f1b758cd4b20d701125d608760d504
parentgive actual cpp name that failed; obrien (diff)
downloadwireguard-openbsd-2caec76e29964a7f35d0cf2e140b05f2707ddc11.tar.xz
wireguard-openbsd-2caec76e29964a7f35d0cf2e140b05f2707ddc11.zip
oflow fix in rev 1.8 was wrong; mjl@netbsd.org
-rw-r--r--usr.bin/telnet/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/main.c b/usr.bin/telnet/main.c
index 0dbc17a4ba5..9d43904cdde 100644
--- a/usr.bin/telnet/main.c
+++ b/usr.bin/telnet/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.9 1999/12/15 11:16:31 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.10 2001/01/21 22:46:37 aaron Exp $ */
/* $NetBSD: main.c,v 1.5 1996/02/28 21:04:05 thorpej Exp $ */
/*
@@ -274,8 +274,8 @@ main(argc, argv)
break;
case 't':
#if defined(TN3270) && defined(unix)
+ (void)strlcpy(tline, optarg, sizeof tline);
transcom = tline;
- (void)strlcpy(transcom, optarg, sizeof transcom);
#else
fprintf(stderr,
"%s: Warning: -t ignored, no TN3270 support.\n",