From 36668aa31a015f157b11d8b0612ad899cade42a3 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 11 Jan 2016 21:15:30 +0100 Subject: [PATCH] ASEParser: fix invalid size of buffer for log writing. --- code/ASEParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ASEParser.cpp b/code/ASEParser.cpp index 544298438..37b7ea0cd 100644 --- a/code/ASEParser.cpp +++ b/code/ASEParser.cpp @@ -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;