mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 08:25:30 +03:00
Truncate service names to 8 chars maximum
This commit is contained in:
parent
8684e20a29
commit
a3a2cb682e
@ -13,6 +13,7 @@ namespace skyline::service::sm {
|
|||||||
|
|
||||||
void IUserInterface::GetService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
void IUserInterface::GetService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
std::string serviceName(request.PopString());
|
std::string serviceName(request.PopString());
|
||||||
|
serviceName.resize(std::min(8UL, serviceName.size()));
|
||||||
|
|
||||||
if (serviceName.empty()) {
|
if (serviceName.empty()) {
|
||||||
response.errorCode = constant::status::ServiceInvName;
|
response.errorCode = constant::status::ServiceInvName;
|
||||||
|
Loading…
Reference in New Issue
Block a user