diff options
author | 1996-11-04 00:07:35 +0000 | |
---|---|---|
committer | 1996-11-04 00:07:35 +0000 | |
commit | ed9ca5d6a2d702084f25b45d07394492873565fe (patch) | |
tree | 579262e44be598a190a9458992f0a462a3cd070c | |
parent | Improve portability by using ANSI/POSIX interfaces when possible. (diff) | |
download | wireguard-openbsd-ed9ca5d6a2d702084f25b45d07394492873565fe.tar.xz wireguard-openbsd-ed9ca5d6a2d702084f25b45d07394492873565fe.zip |
Now allows for host name lengths longer than 100 characters; not
an exploitable overflow.
-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; |