mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Write ut_line, ut_name, and ut_host as byte arrays, not as strings.
This commit is contained in:
parent
a400eea476
commit
97d4bfc393
@ -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);
|
||||
% }
|
||||
% }
|
||||
|
Loading…
x
Reference in New Issue
Block a user