diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-10 07:43:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-10 07:43:35 +0000 |
commit | 4a24468ccf5c7f1ade97c67ece7cad2e265b6b74 (patch) | |
tree | c7ea2a9a9a9cbe91f2b27cea1baaaa46037e55aa /lib/libc/rpc | |
parent | 85488697a5b39cf5b5893ad0370f05d831969c59 (diff) |
use MAXHOSTNAMELEN
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/clnt_simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c index ba63543c183..20071c9b15f 100644 --- a/lib/libc/rpc/clnt_simple.c +++ b/lib/libc/rpc/clnt_simple.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.4 1996/09/15 09:31:33 tholo Exp $"; +static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.5 1996/12/10 07:43:34 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -71,7 +71,7 @@ callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) callrpc_private = crp; } if (crp->oldhost == NULL) { - crp->oldhost = malloc(256); + crp->oldhost = malloc(MAXHOSTNAMELEN); crp->oldhost[0] = 0; crp->socket = RPC_ANYSOCK; } |