Carl said to do it.
[backups/.git] / main.cpp
index 06d1a2f9ecf0847e73e47d83dc0c17df4c2f17f8..2dd8048575903ac09b9214e56538db323c149158 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -35,7 +35,7 @@ bool copy_until_full( I begin, I end, O out, INT &space ) {
 
     if( blocksize <= space ) {
       space -= blocksize;
-      out = *begin;
+      *out = *begin;
       ++out;
     } else {
       // We missed a file that should be included so the backup is not complete
@@ -205,7 +205,7 @@ int main() {
                     back_inserter( leftovers ),
                     FileData::namecmp );
 
-    // Achieve 'last back date then by filesize' by first sorting by filesizing
+    // Achieve 'last backup date then by filesize' by first sorting by filesize
     // and then running stable sort by last backup date.
     sort(        leftovers.rbegin(), leftovers.rend(), FileData::sizecmp );
     stable_sort( leftovers.begin(),  leftovers.end(),  FileData::lastbackupcmp );