artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c46ed0d
)
use MAXHOSTNAMELEN
author
deraadt
<deraadt@openbsd.org>
Tue, 10 Dec 1996 07:43:34 +0000
(07:43 +0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 10 Dec 1996 07:43:34 +0000
(07:43 +0000)
lib/libc/rpc/clnt_simple.c
patch
|
blob
|
history
diff --git
a/lib/libc/rpc/clnt_simple.c
b/lib/libc/rpc/clnt_simple.c
index
ba63543
..
20071c9
100644
(file)
--- 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;
}