mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -273,7 +273,7 @@ namespace DB
|
||||
template<int S>
|
||||
void BindableString<S>::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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user