summaryrefslogtreecommitdiffstats
path: root/twrpDigest.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-03-15 20:17:50 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-03-17 19:40:20 +0100
commit65a4c73b1eea5f29f517d8357248c537dc6752ec (patch)
tree0aaa3c47052201c939de8886442b9fcf59d0b394 /twrpDigest.cpp
parent2.4.4.0 (diff)
downloadandroid_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar.gz
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar.bz2
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar.lz
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar.xz
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.tar.zst
android_bootable_recovery-65a4c73b1eea5f29f517d8357248c537dc6752ec.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);