summaryrefslogtreecommitdiffstats
path: root/twrpDigest.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-03-18 15:57:29 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-03-18 15:57:29 +0100
commit7289a181d86563670b899ebb36d65f81be57bc93 (patch)
treeba44f18a8dc71b4efc0a22ea3c14a03e3ba80cfa /twrpDigest.cpp
parentFix backup of initial directory with split archives (diff)
parenttrying to fix md5 (diff)
downloadandroid_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar.gz
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar.bz2
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar.lz
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar.xz
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.tar.zst
android_bootable_recovery-7289a181d86563670b899ebb36d65f81be57bc93.zip
Diffstat (limited to '')
-rw-r--r--twrpDigest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/twrpDigest.cpp b/twrpDigest.cpp
index 16cda3d68..add498c6c 100644
--- a/twrpDigest.cpp
+++ b/twrpDigest.cpp
@@ -84,7 +84,7 @@ int twrpDigest::write_md5digest(void) {
int twrpDigest::read_md5digest(void) {
string md5file = md5fn + ".md5";
- if (TWFunc::read_file(md5file, lines) != 0)
+ if (TWFunc::read_file(md5file, line) != 0)
return -1;
return 0;
}
@@ -94,10 +94,9 @@ int twrpDigest::verify_md5digest(void) {
char hex[3];
int i;
string md5string;
-
if (read_md5digest() != 0)
return -1;
- stringstream ss(lines.at(0));
+ stringstream ss(line);
vector<string> tokens;
while (ss >> buf)
tokens.push_back(buf);