Fix truncating hostname using MAXHOSTNAMELEN

Submitted by: Jan Conard <charly@fachschaften.tu-muenchen.de>
This commit is contained in:
Andrey A. Chernov 1995-03-24 05:15:09 +00:00
parent cf522ac9ff
commit c568fce986
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7317

View File

@ -46,6 +46,7 @@ static char sccsid[] = "@(#)subr.c 5.10 (Berkeley) 2/26/91";
/* /*
* Melbourne getty. * Melbourne getty.
*/ */
#include <sys/param.h>
#define USE_OLD_TTY #define USE_OLD_TTY
#include <sgtty.h> #include <sgtty.h>
#include <unistd.h> #include <unistd.h>
@ -303,7 +304,7 @@ adelay(ms, dp)
return (dp->bits); return (dp->bits);
} }
char editedhost[32]; char editedhost[MAXHOSTNAMELEN];
edithost(pat) edithost(pat)
register char *pat; register char *pat;