summaryrefslogtreecommitdiff
path: root/usr.bin/tn3270/api/api_bsd.c
diff options
context:
space:
mode:
authorbitblt <bitblt@cvs.openbsd.org>1996-11-04 00:07:36 +0000
committerbitblt <bitblt@cvs.openbsd.org>1996-11-04 00:07:36 +0000
commit138ba29435fff472770670304f4454e1c06be460 (patch)
tree1dbb47d240cc58e28468e012a5ae1a99b017659d /usr.bin/tn3270/api/api_bsd.c
parentd72e5b4dcb4aa82963fd3ce24000a3197269442f (diff)
Now allows for host name lengths longer than 100 characters; not
an exploitable overflow.
Diffstat (limited to 'usr.bin/tn3270/api/api_bsd.c')
-rw-r--r--usr.bin/tn3270/api/api_bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tn3270/api/api_bsd.c b/usr.bin/tn3270/api/api_bsd.c
index 94434bf715e..89e8bef2a23 100644
--- a/usr.bin/tn3270/api/api_bsd.c
+++ b/usr.bin/tn3270/api/api_bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: api_bsd.c,v 1.2 1996/06/26 05:41:00 deraadt Exp $ */
+/* $OpenBSD: api_bsd.c,v 1.3 1996/11/04 00:07:35 bitblt Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)api_bsd.c 4.2 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: api_bsd.c,v 1.2 1996/06/26 05:41:00 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: api_bsd.c,v 1.3 1996/11/04 00:07:35 bitblt Exp $";
#endif /* not lint */
#if defined(unix)
@@ -75,7 +75,7 @@ char *string; /* if non-zero, where to connect to */
#if !defined(htons)
extern unsigned short htons();
#endif /* !defined(htons) */
- char thehostname[100];
+ char thehostname[MAXHOSTNAMELEN];
char keyname[100];
char inkey[100];
FILE *keyfile;