diff --git a/components/files/fileops.cpp b/components/files/fileops.cpp index 4f314caca4..4bb71f8661 100644 --- a/components/files/fileops.cpp +++ b/components/files/fileops.cpp @@ -94,7 +94,8 @@ bool isFile(const char *name) { fullPath = it->string(); if (ignoreExtensions) - fullPath.erase(fullPath.length() - it->extension().string().length()); + fullPath.erase(fullPath.length() - + boost::filesystem::path (it->extension()).string().length()); if (!strict) {