Fix truncating hostname using MAXHOSTNAMELEN

Submitted by: Jan Conard <charly@fachschaften.tu-muenchen.de>
This commit is contained in:
ache 1995-03-24 05:15:09 +00:00
parent e637787692
commit 3d4e112ce8

View File

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