diff options
author | David Robillard <d@drobilla.net> | 2008-04-12 18:02:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-04-12 18:02:40 +0000 |
commit | dd825461b4a8a102d3c384e94a116c6f14c5b6f1 (patch) | |
tree | 8253d8d872daf739dddccd408a3e31de3ff0688c /raul | |
parent | 847fe0e474630429c8a4f0e465d6538d3b58ec92 (diff) | |
download | raul-dd825461b4a8a102d3c384e94a116c6f14c5b6f1.tar.gz raul-dd825461b4a8a102d3c384e94a116c6f14c5b6f1.tar.bz2 raul-dd825461b4a8a102d3c384e94a116c6f14c5b6f1.zip |
Apply gcc 4.3 fixes from larsl.
git-svn-id: http://svn.drobilla.net/lad/raul@1179 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-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 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()] == '/'))) ); } }; |