about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpcsvc/rusers.x10
1 files changed, 7 insertions, 3 deletions
diff --git a/sunrpc/rpcsvc/rusers.x b/sunrpc/rpcsvc/rusers.x
index 641d3c2b16..7f3abeb75d 100644
--- a/sunrpc/rpcsvc/rusers.x
+++ b/sunrpc/rpcsvc/rusers.x
@@ -145,16 +145,20 @@ program RUSERSPROG {
 %	if (xdrs->x_op != XDR_FREE)
 %	{
 %		char *ptr;
+%		unsigned int size;
 %		ptr = objp->ut_line;
-%		if (!xdr_string (xdrs, &ptr, sizeof (objp->ut_line))) {
+%		size = sizeof (objp->ut_line);
+%		if (!xdr_bytes (xdrs, &ptr, &size, size)) {
 %			return (FALSE);
 %		}
 %		ptr = objp->ut_name;
-%		if (!xdr_string (xdrs, &ptr, sizeof (objp->ut_name))) {
+%		size = sizeof (objp->ut_name);
+%		if (!xdr_bytes (xdrs, &ptr, &size, size)) {
 %			return (FALSE);
 %		}
 %		ptr = objp->ut_host;
-%		if (!xdr_string (xdrs, &ptr, sizeof (objp->ut_host))) {
+%		size = sizeof (objp->ut_host);
+%		if (!xdr_bytes (xdrs, &ptr, &size, size)) {
 %			return (FALSE);
 %		}
 %	}