mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 12:33:48 -07:00
Fix calls to substr
with invalid pos
This commit is contained in:
@@ -526,6 +526,7 @@ std::string getReply(std::string request) {
|
||||
format = HyprCtl::FORMAT_JSON;
|
||||
}
|
||||
|
||||
if (sepIndex < request.size())
|
||||
request = request.substr(sepIndex + 1); // remove flags and separator so we can compare the rest of the string
|
||||
|
||||
if (request == "monitors")
|
||||
|
Reference in New Issue
Block a user