diff options
author | deraadt <deraadt@openbsd.org> | 1996-09-13 03:45:25 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 1996-09-13 03:45:25 +0000 |
commit | d4deffdbc1e2035092633f389e9e65e3c3baa587 (patch) | |
tree | 6c1a6015f9782f7eed3ca7580388ab12c1713cc7 /usr.sbin/rpc.lockd | |
parent | document our extensions (diff) | |
download | wireguard-openbsd-d4deffdbc1e2035092633f389e9e65e3c3baa587.tar.xz wireguard-openbsd-d4deffdbc1e2035092633f389e9e65e3c3baa587.zip |
hostname can be longer; noticed by bitblt
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r-- | usr.sbin/rpc.lockd/procs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.lockd/procs.c b/usr.sbin/rpc.lockd/procs.c index 91a2a220cfe..9833d5a7074 100644 --- a/usr.sbin/rpc.lockd/procs.c +++ b/usr.sbin/rpc.lockd/procs.c @@ -58,7 +58,7 @@ static void log_from_addr(char *fun_name, struct svc_req *req) { struct sockaddr_in *addr; struct hostent *host; - char hostname_buf[40]; + char hostname_buf[MAXHOSTNAMELEN; addr = svc_getcaller(req->rq_xprt); host = gethostbyaddr((char *)&(addr->sin_addr), addr->sin_len, AF_INET); |