diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index 7a0c71701..6d675b33c 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -275,7 +275,7 @@ bool isdir(const char *path) bool EndsWith(const string &str, const string& key) { bool result = false; - if (str.length() > key.length()) { + if (str.length() >= key.length()) { result = (0 == str.compare (str.length() - key.length(), key.length(), key)); }