mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 08:31:48 +01: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) {
|
||||
std::string serviceName(request.PopString());
|
||||
serviceName.resize(std::min(8UL, serviceName.size()));
|
||||
|
||||
if (serviceName.empty()) {
|
||||
response.errorCode = constant::status::ServiceInvName;
|
||||
|
Loading…
Reference in New Issue
Block a user