From 6f310e35f59cebab0f82eb83c5782e8842272d3e Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Thu, 3 Oct 2024 02:53:37 +0000 Subject: [PATCH] test/bind-listen: fix incorrect io_uring_prep_recv buflen buf is sized 1024 bytes, not BUFSIZ. Signed-off-by: David Disseldorp --- test/bind-listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bind-listen.c b/test/bind-listen.c index 02d741358..6f80f1770 100644 --- a/test/bind-listen.c +++ b/test/bind-listen.c @@ -180,7 +180,7 @@ static int test_good_server(unsigned int ring_flags) io_uring_cqe_seen(&ring, cqe); sqe = io_uring_get_sqe(&ring); - io_uring_prep_recv(sqe, CONN_INDEX, buf, BUFSIZ, 0); + io_uring_prep_recv(sqe, CONN_INDEX, buf, sizeof(buf), 0); sqe->flags |= IOSQE_FIXED_FILE; io_uring_submit(&ring);