diff --git a/engine/server/application/ChatServer/src/shared/VChatInterface.cpp b/engine/server/application/ChatServer/src/shared/VChatInterface.cpp index f877b510..5eb20c54 100644 --- a/engine/server/application/ChatServer/src/shared/VChatInterface.cpp +++ b/engine/server/application/ChatServer/src/shared/VChatInterface.cpp @@ -905,7 +905,7 @@ std::string VChatInterface::parseWorldName(std::string const & input) std::string::size_type findIndex = input.find(worldCode); if(findIndex != std::string::npos) { - findIndex += worldCode.length()); + findIndex += worldCode.length(); output = input.substr(findIndex); } else diff --git a/engine/shared/library/sharedDatabaseInterface/src/shared/core/DbBindableString.h b/engine/shared/library/sharedDatabaseInterface/src/shared/core/DbBindableString.h index d98cbe61..103b2ada 100644 --- a/engine/shared/library/sharedDatabaseInterface/src/shared/core/DbBindableString.h +++ b/engine/shared/library/sharedDatabaseInterface/src/shared/core/DbBindableString.h @@ -273,7 +273,7 @@ namespace DB template void BindableString::setValue(const std::string &buffer) { - FATAL(buffer.length())>S,("Attempt to save a std::string \"%s\"that is too long to the database.", buffer.c_str())); + FATAL(buffer.length()>S,("Attempt to save a std::string \"%s\"that is too long to the database.", buffer.c_str())); strncpy(m_value, buffer.c_str(), S+1); indicator=buffer.length(); }