Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cf0bd75 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "init: account for "init.svc." prefix in IsValidName"

parents 0ca2fe4c 00860da2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -996,7 +996,7 @@ void ServiceParser::EndSection() {
}

bool ServiceParser::IsValidName(const std::string& name) const {
    if (name.size() > 16) {
    if (name.size() > PROP_NAME_MAX - sizeof("init.svc.")) {
        return false;
    }
    for (const auto& c : name) {