Browse Source

BUG: Fix ExpandListArgument when the string ends in a backslash.

Brad King 18 years ago
parent
commit
9bfe711ef1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmSystemTools.cxx

+ 5 - 0
Source/cmSystemTools.cxx

@@ -1152,6 +1152,11 @@ void cmSystemTools::ExpandListArgument(const std::string& arg,
             {
             {
             newArgVec.push_back(*c);
             newArgVec.push_back(*c);
             }
             }
+          else
+            {
+            // Terminate the loop properly.
+            --c;
+            }
           }
           }
         } break;
         } break;
       case '[':
       case '[':