From 4d57bf6393191446d0e43a82af49f0ebbb7b2788 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 1 Oct 2012 15:32:39 -0600 Subject: 2012-10-01 Patsy Franklin Honza Horak * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize. (xdr_mapname): Use YPMAXMAP as maxsize. (xdr_peername): Use YPMAXPEER as maxsize. (xdr_keydat): Use YPAXRECORD as maxsize. (xdr_valdat): Use YPMAXRECORD as maxsize. --- nis/yp_xdr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nis') diff --git a/nis/yp_xdr.c b/nis/yp_xdr.c index 76e0f2f..4188506 100644 --- a/nis/yp_xdr.c +++ b/nis/yp_xdr.c @@ -49,21 +49,21 @@ libnsl_hidden_def (xdr_ypxfrstat) bool_t xdr_domainname (XDR *xdrs, domainname *objp) { - return xdr_string (xdrs, objp, ~0); + return xdr_string (xdrs, objp, YPMAXDOMAIN); } libnsl_hidden_def (xdr_domainname) bool_t xdr_mapname (XDR *xdrs, mapname *objp) { - return xdr_string (xdrs, objp, ~0); + return xdr_string (xdrs, objp, YPMAXMAP); } libnsl_hidden_def (xdr_mapname) bool_t xdr_peername (XDR *xdrs, peername *objp) { - return xdr_string (xdrs, objp, ~0); + return xdr_string (xdrs, objp, YPMAXPEER); } libnsl_hidden_def (xdr_peername) @@ -71,7 +71,7 @@ bool_t xdr_keydat (XDR *xdrs, keydat *objp) { return xdr_bytes (xdrs, (char **) &objp->keydat_val, - (u_int *) &objp->keydat_len, ~0); + (u_int *) &objp->keydat_len, YPMAXRECORD); } libnsl_hidden_def (xdr_keydat) @@ -79,7 +79,7 @@ bool_t xdr_valdat (XDR *xdrs, valdat *objp) { return xdr_bytes (xdrs, (char **) &objp->valdat_val, - (u_int *) &objp->valdat_len, ~0); + (u_int *) &objp->valdat_len, YPMAXRECORD); } libnsl_hidden_def (xdr_valdat) -- cgit v1.1