From 40a6b7bb54c4ec196a18c71c9faf7a0e290ed71d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 9 Jun 2018 19:36:01 -0600 Subject: [PATCH] fs.mitm: Fix pointer buffer size passed to mitm'd commands --- stratosphere/fs_mitm/source/mitm_session.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/fs_mitm/source/mitm_session.hpp b/stratosphere/fs_mitm/source/mitm_session.hpp index a11dcd846..a286326e2 100644 --- a/stratosphere/fs_mitm/source/mitm_session.hpp +++ b/stratosphere/fs_mitm/source/mitm_session.hpp @@ -108,7 +108,7 @@ class MitMSession final : public IWaitable { rawdata_start = (u32 *)r.Raw; retval = 0xF601; if (r.CommandType == IpcCommandType_Request || r.CommandType == IpcCommandType_RequestWithContext) { - retval = this->service_object->dispatch(r, c, rawdata_start[2], (u8 *)this->pointer_buffer, sizeof(this->pointer_buffer)); + retval = this->service_object->dispatch(r, c, rawdata_start[2], (u8 *)this->pointer_buffer, this->pointer_buffer_size); } /* 0xF601 --> Dispatch onwards. */