ASEParser: fix invalid size of buffer for log writing.

pull/756/head
Kim Kulling 2016-01-11 21:15:30 +01:00
parent bd268bd864
commit 36668aa31a
1 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ bool Parser::ParseString(std::string& out,const char* szName)
if (!SkipSpaces(&filePtr))
{
ai_snprintf(szBuffer, 1023, "Unable to parse %s block: Unexpected EOL",szName);
ai_snprintf(szBuffer, 1024, "Unable to parse %s block: Unexpected EOL",szName);
LogWarning(szBuffer);
return false;
}
@ -833,7 +833,7 @@ bool Parser::ParseString(std::string& out,const char* szName)
if ('\"' != *filePtr)
{
ai_snprintf(szBuffer, 1023, "Unable to parse %s block: Strings are expected "
ai_snprintf(szBuffer, 1024, "Unable to parse %s block: Strings are expected "
"to be enclosed in double quotation marks",szName);
LogWarning(szBuffer);
return false;