X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/c6f155da1354232bd502882ef0490c98819efdf0..a0865d6380e4ae001b2f00dbe4199477660b93d4:/lookup.subproj/lu_protocol.c?ds=sidebyside diff --git a/lookup.subproj/lu_protocol.c b/lookup.subproj/lu_protocol.c index f3c0e4b..f2c346f 100644 --- a/lookup.subproj/lu_protocol.c +++ b/lookup.subproj/lu_protocol.c @@ -235,7 +235,10 @@ lu_getprotoent() return (NULL); } +#ifdef NOTDEF +/* NOTDEF because OOL buffers are counted in bytes with untyped IPC */ p_datalen *= BYTES_PER_XDR_UNIT; +#endif xdrmem_create(&p_xdr, p_data, p_datalen, XDR_DECODE); if (!xdr_int(&p_xdr, &p_nentries))