diff options
Diffstat (limited to 'src/core/hle/service/srv.cpp')
| -rw-r--r-- | src/core/hle/service/srv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp index bb6c08b78..ad7448461 100644 --- a/src/core/hle/service/srv.cpp +++ b/src/core/hle/service/srv.cpp | |||
| @@ -17,7 +17,7 @@ void GetServiceHandle() { | |||
| 17 | Syscall::Result res = 0; | 17 | Syscall::Result res = 0; |
| 18 | u32* cmd_buff = (u32*)HLE::GetPointer(HLE::CMD_BUFFER_ADDR + Service::kCommandHeaderOffset); | 18 | u32* cmd_buff = (u32*)HLE::GetPointer(HLE::CMD_BUFFER_ADDR + Service::kCommandHeaderOffset); |
| 19 | 19 | ||
| 20 | const char* port_name = (const char*)&cmd_buff[1]; | 20 | std::string port_name = std::string((const char*)&cmd_buff[1], 0, Service::kMaxPortSize); |
| 21 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); | 21 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); |
| 22 | 22 | ||
| 23 | NOTICE_LOG(OSHLE, "SRV::Sync - GetHandle - port: %s, handle: 0x%08X", port_name, | 23 | NOTICE_LOG(OSHLE, "SRV::Sync - GetHandle - port: %s, handle: 0x%08X", port_name, |