Matching the depfile_parser.in.cc file to properly generate the depfile_parser.cc...
authorJonathan Sternberg <jonathansternberg@gmail.com>
Fri, 23 Dec 2011 15:02:10 +0000 (10:02 -0500)
committerJonathan Sternberg <jonathansternberg@gmail.com>
Fri, 23 Dec 2011 15:02:10 +0000 (10:02 -0500)
src/depfile_parser.in.cc

index 8c04bdd..4751550 100644 (file)
@@ -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)