diff options
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc index f85a1f6..930c626 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -331,7 +331,7 @@ bool Edge::use_console() const { string Node::PathDecanonicalized() const { string result = path_; unsigned int mask = 1; - for (char* c = &result[0]; (c = strpbrk(c, "/\\")) != NULL;) { + for (char* c = &result[0]; (c = strchr(c, '/')) != NULL;) { if (slash_bits_ & mask) *c = '\\'; c++; |