diff options
author | Evan Martin <martine@danga.com> | 2011-04-23 20:42:26 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-04-23 20:42:26 (GMT) |
commit | 0b660a82e76821c880c7f37c08c10f775a6fc4bc (patch) | |
tree | 5a47d968b45611c124b71acac53d6a3abea60912 | |
parent | f67b7c25008b1777600b8e8a35a847bdcf3bc4bc (diff) | |
download | Ninja-0b660a82e76821c880c7f37c08c10f775a6fc4bc.zip Ninja-0b660a82e76821c880c7f37c08c10f775a6fc4bc.tar.gz Ninja-0b660a82e76821c880c7f37c08c10f775a6fc4bc.tar.bz2 |
use kMaxPathComponents in proper place
-rw-r--r-- | src/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index cb88fdb..060ea16 100644 --- a/src/util.cc +++ b/src/util.cc @@ -56,7 +56,7 @@ bool CanonicalizePath(string* path, string* err) { const int kMaxPathComponents = 20; const char* starts[kMaxPathComponents]; // Starts of path components. - int lens[100]; // Lengths of path components. + int lens[kMaxPathComponents]; // Lengths of path components. int parts_count = 0; // Number of entries in starts/lens. int slash_count = 0; // Number of components in the original path. |