File 0004-Fix-spelling-and-grammar.patch of Package fatcat

From b3bef56b1e289e6109b389dcb90e5fdab1c9524a Mon Sep 17 00:00:00 2001
From: Arachnos
Date: Thu, 9 Sep 2021 00:00:00 +0000
Subject: [PATCH] Fix spelling and grammar

Fix some of the spelling and grammar bugs.
---
 src/analysis/FatChains.cpp |  4 ++--
 src/analysis/FatFix.cpp    |  2 +-
 src/core/FatSystem.cpp     |  8 ++++----
 src/fatcat.cpp             | 10 +++++-----
 src/table/FatDiff.cpp      |  8 ++++----
 5 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/analysis/FatChains.cpp b/src/analysis/FatChains.cpp
index a51e396..9e59053 100644
--- a/src/analysis/FatChains.cpp
+++ b/src/analysis/FatChains.cpp
@@ -284,7 +284,7 @@ void FatChains::displayOrphaned(list<FatChain> orphanedChains)
             cout << endl;
         }
         cout << endl;
-        cout << "Estimation of orphan files total sizes: " << totalSize << " (" << prettySize(totalSize) << ")" << endl;
+        cout << "Estimation of orphaned files total sizes: " << totalSize << " (" << prettySize(totalSize) << ")" << endl;
         cout << endl;
         if (orphanEntries.size()) {
             map<int, vector<FatEntry> >::iterator mit;
@@ -301,7 +301,7 @@ void FatChains::displayOrphaned(list<FatChain> orphanedChains)
             }
         }
     } else {
-        cout << "There is no orphaned chains, disk seems clean!" << endl;
+        cout << "There are no orphaned chains, disk seems clean!" << endl;
     }
     cout << endl;
 }
diff --git a/src/analysis/FatFix.cpp b/src/analysis/FatFix.cpp
index 05c4fca..9496b73 100644
--- a/src/analysis/FatFix.cpp
+++ b/src/analysis/FatFix.cpp
@@ -64,6 +64,6 @@ void FatFix::fixChain(int cluster, int size)
             }
         }
     } else {
-        cout << "There is allocated clusters in the list, not fixing" << endl;
+        cout << "There are allocated clusters in the list, not fixing" << endl;
     }
 }
diff --git a/src/core/FatSystem.cpp b/src/core/FatSystem.cpp
index 79cda8c..3c83b99 100644
--- a/src/core/FatSystem.cpp
+++ b/src/core/FatSystem.cpp
@@ -183,7 +183,7 @@ void FatSystem::parseHeader()
     }
 
     if (fats == 0) {
-        printf("WARNING: Fats numbner is 0\n");
+        printf("WARNING: Number of FATs is 0\n");
          strange++;
     }
 
@@ -450,7 +450,7 @@ vector<FatEntry> FatSystem::getEntries(unsigned int cluster, int *clusters, bool
 
         if (!isValid) {
             if (badEntries>foundEntries) {
-                cerr << "! Entries don't look good, this is maybe not a directory" << endl;
+                cerr << "! Entries don't look good, maybe this is not a directory" << endl;
                 return vector<FatEntry>();
           }
         }
@@ -639,7 +639,7 @@ void FatSystem::readFile(unsigned int cluster, unsigned int size, FILE *f, bool
             cluster = nextCluster(currentCluster);
 
             if (cluster == 0) {
-                fprintf(stderr, "! One of your file's cluster is 0 (maybe FAT is broken, have a look to -2 and -m)\n");
+                fprintf(stderr, "! One of your file's clusters is 0 (maybe FAT is broken, have a look at -2 and -m)\n");
                 fprintf(stderr, "! Trying to enable contigous mode\n");
                 contiguous = true;
                 cluster = currentCluster+1;
@@ -733,7 +733,7 @@ void FatSystem::infos()
                 cout << "Root clusters: " << rootClusters << endl;
             }
             cout << "Sectors per FAT: " << sectorsPerFat << endl;
-            cout << "Fat size: " << fatSize << " (" << prettySize(fatSize) << ")" << endl;
+            cout << "FAT size: " << fatSize << " (" << prettySize(fatSize) << ")" << endl;
             printf("FAT1 start address: %016llx\n", fatStart);
             printf("FAT2 start address: %016llx\n", fatStart+fatSize);
             printf("Data start address: %016llx\n", dataStart);
diff --git a/src/fatcat.cpp b/src/fatcat.cpp
index ce23ca0..f27f98f 100644
--- a/src/fatcat.cpp
+++ b/src/fatcat.cpp
@@ -47,8 +47,8 @@ void usage()
     cout << "  -d: enable listing of deleted files" << endl;
     cout << "  -x [directory]: extract all files to a directory, deleted files included if -d" << endl;
     cout << "                  will start with rootDirectory, unless -c is provided" << endl;
-    cout << "* -S: write scamble data in unallocated sectors" << endl;
-    cout << "* -z: write scamble data in unallocated sectors" << endl;
+    cout << "* -S: write scrambled data in unallocated sectors" << endl;
+    cout << "* -z: write zeroed data in unallocated sectors" << endl;
     cout << endl;
     cout << "FAT Hacking" << endl;
     cout << "  -@ [cluster]: Get the cluster address and information" << endl;
@@ -58,7 +58,7 @@ void usage()
     cout << "* -w [cluster] -v [value]: write next cluster (see -t)" << endl;
     cout << "  -t [table]: specify which table to write (0:both, 1:first, 2:second)" << endl;
     cout << "* -m: merge the FATs" << endl;
-    cout << "  -o: search for orphan files and directories" << endl;
+    cout << "  -o: search for orphaned files and directories" << endl;
     cout << "* -f: try to fix reachable directories" << endl;
     cout << endl;
     cout << "Entries hacking" << endl;
@@ -66,10 +66,10 @@ void usage()
     cout << "* -c [cluster]: sets the entry cluster" << endl;
     cout << "* -s [size]: sets the entry size" << endl;
     cout << "* -a [attributes]: sets the entry attributes" << endl;
-    cout << "  -k [cluster]: try to find an entry that point to that cluster" << endl;
+    cout << "  -k [cluster]: try to find an entry that points to that cluster" << endl;
 
     cout << endl;
-    cout << "*: These flags writes on the disk, and may damage it, be careful" << endl;
+    cout << "*: These flags write on the disk and may damage it, be careful" << endl;
     exit(EXIT_FAILURE);
 }
 
diff --git a/src/table/FatDiff.cpp b/src/table/FatDiff.cpp
index 412c582..989be4a 100644
--- a/src/table/FatDiff.cpp
+++ b/src/table/FatDiff.cpp
@@ -17,7 +17,7 @@ bool FatDiff::compare()
     cout << "Comparing the FATs" << endl;
 
     if (system.fats != 2) {
-        cerr << "ERROR: Compare is only suitable for 2 fats (found " << system.fats << ")" << endl;
+        cerr << "ERROR: Compare is only suitable for 2 FATs (found " << system.fats << ")" << endl;
         return false;
     }
 
@@ -37,11 +37,11 @@ bool FatDiff::compare()
     cout << endl;
 
     if (diff) {
-        cout << "FATs differs" << endl;
+        cout << "FATs differ" << endl;
         if (mergeable) {
             cout << "It seems mergeable" << endl;
         } else {
-            cout << "It doesn't seems mergeable" << endl;
+            cout << "It doesn't seem mergeable" << endl;
         }
     } else {
         cout << "FATs are exactly equals" << endl;
@@ -56,7 +56,7 @@ void FatDiff::merge()
     cout << "Beginning the merge..." << endl;
 
     if (system.fats != 2) {
-        cerr << "ERROR: Merge is only suitable for 2 fats (found " << system.fats << ")" << endl;
+        cerr << "ERROR: Merge is only suitable for 2 FATs (found " << system.fats << ")" << endl;
         return;
     }
 
-- 
2.33.0

openSUSE Build Service is sponsored by