commit 43c9a095b6d5ddb419b171c545c62200baefb65c
Author: David Sorber <david.sorber@gmail.com>
Date:   Tue Feb 21 20:06:12 2017 -0500

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

diff --git a/software/photo_compress_archiver/PhotoCompressArchiver.cc b/software/photo_compress_archiver/PhotoCompressArchiver.cc
index 5722371..2298024 100644
--- a/software/photo_compress_archiver/PhotoCompressArchiver.cc
+++ b/software/photo_compress_archiver/PhotoCompressArchiver.cc
@@ -252,7 +252,7 @@ void PhotoCompressArchiver::fork_worker(
             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);
@@ -266,13 +266,14 @@ void PhotoCompressArchiver::fork_worker(
             ++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 
