diff --git a/src/integretychecker.cpp b/src/integretychecker.cpp index 65df18a..e5d9d6c 100644 --- a/src/integretychecker.cpp +++ b/src/integretychecker.cpp @@ -81,7 +81,7 @@ std::string IntegretyCheck::generateHashList(const std::string &app) { } else { // strip appPath std::string filepath = f.path().string(); - filepath.erase(0, p.size()); + filepath.erase(0, p.size() + 1); // write hash line to file hashlist << generateFileHash(f.path().string()) << HASH_FILE_DIVIDER << filepath << std::endl;