From 0ca8f4e68c82c36fea8f087e78a934d65f99413a Mon Sep 17 00:00:00 2001 From: Arne Schroeder Date: Sat, 7 Sep 2019 13:36:07 +0200 Subject: [PATCH] fixed filename in hash list, remove prefixed slash --- src/integretychecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;