blob: 6e0cf39629c0a658ed21402e15ab8b974f33a1f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Make room for terminating NUL added by sprintf()
--- source/scriptlib/Parser.c.orig 2016-12-15 02:16:03 UTC
+++ source/scriptlib/Parser.c
@@ -1828,7 +1828,7 @@ void Parser_Mult_expr2(Parser *pparser )
void Parser_Unary_expr(Parser *pparser )
{
- static CHAR buf[MAX_TOKEN_LENGTH + 1];
+ static CHAR buf[MAX_TOKEN_LENGTH + 2];
Instruction *pInstruction = NULL;
if (ParserSet_First(&(pparser->theParserSet), postfix_expr, pparser->theNextToken.theType ))
|