]> git.saurik.com Git - cycript.git/commitdiff
Fix off-by-one in syntax error output (infinite loop). v0.9.451
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 19 Mar 2012 00:10:41 +0000 (00:10 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 19 Mar 2012 00:10:41 +0000 (00:10 +0000)
Console.cpp

index c6809479319d05620de0c848ec7b0bf48ce5b331..df7d57b34165b994a3c889ebd69ead5dc2985ae7 100644 (file)
@@ -491,7 +491,7 @@ static void Console(CYOptions &options) {
                         }
 
                         std::cerr << "....";
-                        for (size_t i(0); i != begin.column - 1; ++i)
+                        for (size_t i(0); i != begin.column; ++i)
                             std::cerr << '.';
                         if (begin.line != end.line || begin.column == end.column)
                             std::cerr << '^';