Correct my optimizaion of SmackRules::generateAppPkgNameFromLabel().
Now it should properly locate "::App::" substring in the analyzed label.
Change-Id: I9289d1ab5bf0336bd6f42fa38ee31cfcfaba5cf5
ThrowMsg(SmackException::InvalidLabel, "Invalid application process label " << label);
size_t pkgStartPos = sizeof(pkgPrefix) - 1;
- size_t pkgEndPos = pkgName.find(appPrefix, pkgStartPos);
+ size_t pkgEndPos = label.find(appPrefix, pkgStartPos);
if (pkgEndPos != std::string::npos) {
LogDebug("Hybrid application process label");
size_t appStartPos = pkgEndPos + sizeof(appPrefix) - 1;