diff options
author | Jonathan Sternberg <jonathansternberg@gmail.com> | 2011-12-23 15:02:10 (GMT) |
---|---|---|
committer | Jonathan Sternberg <jonathansternberg@gmail.com> | 2011-12-23 15:02:10 (GMT) |
commit | b8110f43c87aae65c0115e4f17ab82b58f94993d (patch) | |
tree | 332308dd70652913f1345765b99ee4f2d7a0153c | |
parent | feddf1525f5c5a62cb9cf301d727c1a9d4fd2ce4 (diff) | |
download | Ninja-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.
-rw-r--r-- | src/depfile_parser.in.cc | 2 |
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) |