Fix overflow from jail hostname.

Bug found by:	Esa Etelavuori <eetelavu@cc.hut.fi>
This commit is contained in:
Eivind Eklund 2000-11-01 19:38:08 +00:00
parent a07b7a4e35
commit ab3240e198
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ procfs_dostatus(curp, p, pfs, uio)
int i;
int xlen;
int error;
char psbuf[256]; /* XXX - conservative */
char psbuf[256+MAXHOSTNAMELEN]; /* XXX - conservative */
if (uio->uio_rw != UIO_READ)
return (EOPNOTSUPP);

View File

@ -71,7 +71,7 @@ procfs_dostatus(curp, p, pfs, uio)
int i;
int xlen;
int error;
char psbuf[256]; /* XXX - conservative */
char psbuf[256+MAXHOSTNAMELEN]; /* XXX - conservative */
if (uio->uio_rw != UIO_READ)
return (EOPNOTSUPP);