freebsd-ports/games/openbor4432/files/patch-source_scriptlib_Parser.c
Jan Beich 68a8fbed3e games/openbor: update to 3.0.r4504
- Add old slaves for some games (e.g. Ghosts'n Demons) based on
  http://www.chronocrash.com/forum/index.php?topic=2360.0
- Annotate .desktop file with build version
- Drop v3.0 from package version
- s/module/game/ in pkg-message for less ambiguity

Changes:	ba1eb4f...4dfdb66
2017-05-09 20:57:05 +00:00

13 lines
476 B
C

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 ))