summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-10 07:43:34 +0000
committerderaadt <deraadt@openbsd.org>1996-12-10 07:43:34 +0000
commita2198af5edb663f99a5d9082500644f42ec3c98c (patch)
tree8fb8a2fa15c623b54f5a73fc4b9503ac8bb0db9b /lib/libc
parent64 bit & -Wall cleanup (diff)
downloadwireguard-openbsd-a2198af5edb663f99a5d9082500644f42ec3c98c.tar.xz
wireguard-openbsd-a2198af5edb663f99a5d9082500644f42ec3c98c.zip
use MAXHOSTNAMELEN
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/clnt_simple.c4
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;
}