From 97875c7d2f03ae10535502c2c591a38c0b427cab Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 24 Feb 2021 10:12:25 -0800 Subject: [PATCH] tio: fix bug in body receive --- stratosphere/TioServer/source/tio_file_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/TioServer/source/tio_file_server.cpp b/stratosphere/TioServer/source/tio_file_server.cpp index 2b5309c8a..8dee7ddb6 100644 --- a/stratosphere/TioServer/source/tio_file_server.cpp +++ b/stratosphere/TioServer/source/tio_file_server.cpp @@ -76,7 +76,7 @@ namespace ams::tio { /* Receive the request body, if necessary. */ if (request->header.body_size > 0) { - if (htcs::Recv(fd, request->body, request->header.body_size, htcs::HTCS_MSG_WAITALL) != sizeof(request->header.body_size)) { + if (htcs::Recv(fd, request->body, request->header.body_size, htcs::HTCS_MSG_WAITALL) != request->header.body_size) { break; } }