Project

General

Profile

« Previous | Next » 

Revision 43c9a095

Added by David Sorber over 9 years ago

Fixing the bug I discovered yesterday... I meant to use rfind() instead of find(). I should be ready for another full test.

View differences:

software/photo_compress_archiver/PhotoCompressArchiver.cc
argv_size += path_len + ptr_len;
// Create new filename for expected
uint32_t end_pos = file_path.string().find(".");
uint32_t end_pos = file_path.string().rfind(".");
std::string* filename = new std::string(file_path.string().begin(),
file_path.string().begin()
+ end_pos);
......
++sublist_idx;
}
#if 1
#if 0
// DEBUGGING
uint32_t idx = 0;
uint32_t idx = 4;
for (auto outfile : output_filenames)
{
OUT(std::cout << "T[" << tid << "] output file: " << outfile
<< "\ninput file: " << exec_argv[idx++] << std::endl;)
OUT(std::cout << "T[" << tid << "] output file: " << *outfile
<< "\n input file: "
<< static_cast<const char*>(exec_argv[idx++]) << std::endl;)
}
continue;
#endif

Also available in: Unified diff