From: Ulrich Drepper Date: Thu, 20 Aug 1998 17:25:33 +0000 (+0000) Subject: Write ut_line, ut_name, and ut_host as byte arrays, not as strings. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d4bfc393aacb314fabc6bc59c0322ca6c3b559;p=thirdparty%2Fglibc.git Write ut_line, ut_name, and ut_host as byte arrays, not as strings. --- diff --git a/sunrpc/rpcsvc/rusers.x b/sunrpc/rpcsvc/rusers.x index fdd1890e200..0b56d08c803 100644 --- a/sunrpc/rpcsvc/rusers.x +++ b/sunrpc/rpcsvc/rusers.x @@ -140,16 +140,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); % } % }