mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-24 10:52:36 +01:00
Fix truncating hostname using MAXHOSTNAMELEN
Submitted by: Jan Conard <charly@fachschaften.tu-muenchen.de>
This commit is contained in:
parent
cf522ac9ff
commit
c568fce986
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7317
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user