summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser.in.cc
diff options
context:
space:
mode:
authorJonathan Sternberg <jonathansternberg@gmail.com>2011-12-23 15:02:10 (GMT)
committerJonathan Sternberg <jonathansternberg@gmail.com>2011-12-23 15:02:10 (GMT)
commitb8110f43c87aae65c0115e4f17ab82b58f94993d (patch)
tree332308dd70652913f1345765b99ee4f2d7a0153c /src/depfile_parser.in.cc
parentfeddf1525f5c5a62cb9cf301d727c1a9d4fd2ce4 (diff)
downloadNinja-b8110f43c87aae65c0115e4f17ab82b58f94993d.zip
Ninja-b8110f43c87aae65c0115e4f17ab82b58f94993d.tar.gz
Ninja-b8110f43c87aae65c0115e4f17ab82b58f94993d.tar.bz2
Matching the depfile_parser.in.cc file to properly generate the depfile_parser.cc file that's in version control.
Diffstat (limited to 'src/depfile_parser.in.cc')
-rw-r--r--src/depfile_parser.in.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depfile_parser.in.cc b/src/depfile_parser.in.cc
index 8c04bdd..4751550 100644
--- a/src/depfile_parser.in.cc
+++ b/src/depfile_parser.in.cc
@@ -51,7 +51,7 @@ bool DepfileParser::Parse(const string& content, string* err) {
[a-zA-Z0-9+,/\\_:.-]+ {
// Got a filename.
int len = p - start;;
- if (start[len] == ':')
+ if (start[len - 1] == ':')
len--; // Strip off trailing colon, if any.
if (len == 0)