The protocol spec says: The MAXIMUM-REQUEST-LENGTH specifies the largest request size in 4-byte units that is accepted by the server
The code worked on 32-bit platforms, where longs were 4 bytes, but overreports the number of bytes allowed on platforms with 64-bit longs. Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com> --- xfsinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xfsinfo.c b/xfsinfo.c index 4749967..9ed847d 100644 --- a/xfsinfo.c +++ b/xfsinfo.c @@ -144,8 +144,8 @@ print_server_info(FSServer *svr) printf(".%d", vendrel % 1000); printf("\n"); } - printf("maximum request size: %ld longwords (%ld bytes)\n", - FSMaxRequestSize(svr), FSMaxRequestSize(svr) * sizeof(long)); + printf("maximum request size: %ld words (%ld bytes)\n", + FSMaxRequestSize(svr), FSMaxRequestSize(svr) * sizeof(CARD32)); print_catalogue_info(svr); print_alternate_info(svr); print_extension_info(svr); -- 2.15.2 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel