From: deraadt Date: Tue, 10 Dec 1996 07:43:34 +0000 (+0000) Subject: use MAXHOSTNAMELEN X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a2198af5edb663f99a5d9082500644f42ec3c98c;p=openbsd use MAXHOSTNAMELEN --- 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; }