diff --git a/src/utils.cpp b/src/utils.cpp index 389e4710..097954c8 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -121,7 +121,7 @@ namespace Util { bool startsWith(const std::string& s, const std::string& start) { - return s.size() >= start.size() && std::memcmp(s.data(), start.data(), start.size()) == 0; + return s.find(start) == 0; }