summaryrefslogtreecommitdiffstats
path: root/partitionmanager.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 /partitionmanager.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--partitionmanager.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 9beb2575f..4364a2252 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -501,12 +501,8 @@ bool TWPartitionManager::Make_MD5(bool generate_md5, string Backup_Folder, strin
string strfn;
sprintf(filename, "%s%03i", Full_File.c_str(), index);
strfn = filename;
- ostringstream intToStr;
- ostringstream fn;
while (TWFunc::Path_Exists(filename) == true) {
- intToStr << index;
- fn << setw(3) << setfill('0') << intToStr.str();
- md5sum.setfn(strfn);
+ md5sum.setfn(filename);
if (md5sum.computeMD5() == 0) {
if (md5sum.write_md5digest() != 0)
{