diff --git a/include/stratosphere/mitm/mitm_server.hpp b/include/stratosphere/mitm/mitm_server.hpp index 3abf9b18..f5b27f07 100644 --- a/include/stratosphere/mitm/mitm_server.hpp +++ b/include/stratosphere/mitm/mitm_server.hpp @@ -37,7 +37,7 @@ class MitmServer : public IWaitable { Handle query_h = 0; DoWithSmMitmSession([&]() { - strncpy(mitm_name, service_name, 8); + strncpy(mitm_name, service_name, 9); mitm_name[8] = '\x00'; if (R_FAILED(smMitMInstall(&this->port_handle, &query_h, mitm_name))) { std::abort();