Write ut_line, ut_name, and ut_host as byte arrays, not as strings.

This commit is contained in:
Ulrich Drepper 1998-08-20 17:25:33 +00:00
parent a400eea476
commit 97d4bfc393

View File

@ -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);
% }
% }