Mark Underwood / CmdLine

Dependents:   MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more

Revision:
19:b14922500968
Parent:
18:2c3c44a34d81
Child:
20:92a1fb8a5732
--- a/CmdLine.cpp	Wed Nov 10 02:03:34 2021 -0800
+++ b/CmdLine.cpp	Tue Nov 30 00:48:26 2021 -0800
@@ -399,7 +399,13 @@
             unsigned int idxCopyDst = idxKey + offset;
             unsigned int idxCopySrc = idxSpace + 1 + offset;
             if (idxCopyDst > indexOfNextEmptyCell) break;
-            if (idxCopySrc > indexOfNextEmptyCell) break;
+            // cmdLine final key=value arg wrongly included in parse_byteCount_byteList_ buffer #358
+            // if (idxCopySrc > indexOfNextEmptyCell) break;
+            if (idxCopySrc > indexOfNextEmptyCell)
+            {
+                buf[idxCopyDst] = ' ';
+                continue;
+            }
             buf[idxCopyDst] = buf[idxCopySrc];
         }
         if (verbose) { 
@@ -581,7 +587,13 @@
             unsigned int idxCopyDst = idxKey + offset;
             unsigned int idxCopySrc = idxSpace + 1 + offset;
             if (idxCopyDst > indexOfNextEmptyCell) break;
-            if (idxCopySrc > indexOfNextEmptyCell) break;
+            // cmdLine final key=value arg wrongly included in parse_byteCount_byteList_ buffer #358
+            // if (idxCopySrc > indexOfNextEmptyCell) break;
+            if (idxCopySrc > indexOfNextEmptyCell)
+            {
+                buf[idxCopyDst] = ' ';
+                continue;
+            }
             buf[idxCopyDst] = buf[idxCopySrc];
         }
         if (verbose) {