summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'partitionmanager.cpp')
-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)
{