From 551181f53a62d1215832fd715f33e0894287efd7 Mon Sep 17 00:00:00 2001 From: averne Date: Tue, 23 Apr 2019 21:00:24 +0900 Subject: [PATCH] Fix compiler warning when service string is exactly 8 characters --- include/stratosphere/mitm/mitm_server.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();