From: deraadt Date: Fri, 13 Sep 1996 03:45:25 +0000 (+0000) Subject: hostname can be longer; noticed by bitblt X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d4deffdbc1e2035092633f389e9e65e3c3baa587;p=openbsd hostname can be longer; noticed by bitblt --- diff --git a/libexec/rpc.lockd/procs.c b/libexec/rpc.lockd/procs.c index 91a2a220cfe..9833d5a7074 100644 --- a/libexec/rpc.lockd/procs.c +++ b/libexec/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); 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);