Merge "init: account for "init.svc." prefix in IsValidName" am: 8cf0bd75f7
am: 6b03c273b1

Change-Id: I808cfaf83a575470f50b50b5d17791144d6c291e
diff --git a/init/service.cpp b/init/service.cpp
index 22fb013..685befd 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -996,7 +996,7 @@
 }
 
 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) {