diff options
-rw-r--r-- | src/common/smack-labels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/smack-labels.cpp b/src/common/smack-labels.cpp index 55243a8e..b007f07f 100644 --- a/src/common/smack-labels.cpp +++ b/src/common/smack-labels.cpp @@ -192,7 +192,7 @@ void generateAppPkgNameFromLabel(const std::string &label, std::string &appName, 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; |