From dd825461b4a8a102d3c384e94a116c6f14c5b6f1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Apr 2008 18:02:40 +0000 Subject: Apply gcc 4.3 fixes from larsl. git-svn-id: http://svn.drobilla.net/lad/raul@1179 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Path.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'raul') 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 #include #include +#include #include 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()] == '/'))) ); } }; -- cgit v1.2.1