summaryrefslogtreecommitdiffstats
path: root/raul/Path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r--raul/Path.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp
index d14f21e..8cda1fa 100644
--- a/raul/Path.hpp
+++ b/raul/Path.hpp
@@ -21,6 +21,7 @@
#include <iostream>
#include <cctype>
#include <string>
+#include <cstring>
#include <cassert>
namespace Raul {
@@ -121,7 +122,7 @@ public:
/** Return true if \a child is equal to, or a descendant of \a parent */
static bool descendant_comparator(const Path& parent, const Path& child) {
return ( child == parent || (child.length() > parent.length() &&
- (!strncmp(parent.c_str(), child.c_str(), parent.length())
+ (!std::strncmp(parent.c_str(), child.c_str(), parent.length())
&& (parent == "/" || child[parent.length()] == '/'))) );
}
};