summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-13 03:45:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-13 03:45:26 +0000
commit86357ae0221930878b02ed8d5af6a4fbde557ac6 (patch)
tree790f9c90d9426989e7eb9e7da20a6ad4d4ab9189 /usr.sbin
parentebfecc46b680789468747c3366d2a72976faef80 (diff)
hostname can be longer; noticed by bitblt
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpc.lockd/procs.c2
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);