summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)