From ab3240e1987eced9159e253ab997d8afe4e54995 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Wed, 1 Nov 2000 19:38:08 +0000 Subject: Fix overflow from jail hostname. Bug found by: Esa Etelavuori --- sys/fs/procfs/procfs_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/procfs/procfs_status.c') diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c index c1adc60ada41..53df2c84d4e4 100644 --- a/sys/fs/procfs/procfs_status.c +++ b/sys/fs/procfs/procfs_status.c @@ -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); -- cgit v1.2.3