diff options
author | bitblt <bitblt@cvs.openbsd.org> | 1996-11-04 00:07:36 +0000 |
---|---|---|
committer | bitblt <bitblt@cvs.openbsd.org> | 1996-11-04 00:07:36 +0000 |
commit | 138ba29435fff472770670304f4454e1c06be460 (patch) | |
tree | 1dbb47d240cc58e28468e012a5ae1a99b017659d /usr.bin | |
parent | d72e5b4dcb4aa82963fd3ce24000a3197269442f (diff) |
Now allows for host name lengths longer than 100 characters; not
an exploitable overflow.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tn3270/api/api_bsd.c | 6 |
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; |