Index: Source/WebCore/bindings/js/ScriptDebugServer.cpp |
=================================================================== |
--- Source/WebCore/bindings/js/ScriptDebugServer.cpp (revision 107226) |
+++ Source/WebCore/bindings/js/ScriptDebugServer.cpp (working copy) |
@@ -242,7 +242,7 @@ |
int sourceLength = script.source.length(); |
int lineCount = 1; |
int lastLineStart = 0; |
- for (int i = 0; i < sourceLength - 1; ++i) { |
+ for (int i = 0; i < sourceLength; ++i) { |
if (script.source[i] == '\n') { |
lineCount += 1; |
lastLineStart = i + 1; |