diff options
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r-- | raul/Path.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp index d1a86f9..b6a1395 100644 --- a/raul/Path.hpp +++ b/raul/Path.hpp @@ -18,6 +18,7 @@ #ifndef RAUL_PATH_HPP #define RAUL_PATH_HPP +#include <iostream> #include <cctype> #include <string> #include <cassert> @@ -130,7 +131,7 @@ public: { return ( child == parent || (child.length() > parent.length() && (!strncmp(parent.c_str(), child.c_str(), parent.length()) - && child[parent.length()] == '/')) ); + && (parent == "/" || child[parent.length()] == '/'))) ); } }; |