]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Write ut_line, ut_name, and ut_host as byte arrays, not as strings.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Aug 1998 17:25:33 +0000 (17:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Aug 1998 17:25:33 +0000 (17:25 +0000)
sunrpc/rpcsvc/rusers.x

index fdd1890e200905f0afbf4d3c7a083add678f4e53..0b56d08c803cac23da074fe68aead564012ecf35 100644 (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);
 %              }
 %      }