eo - parser - fix warning about truncated strings with snprintf

expand buffer to never truncate.
This commit is contained in:
Carsten Haitzler 2018-11-06 16:07:28 +00:00
parent 07177d540c
commit 01139b419d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
static void
error_expected(Eo_Lexer *ls, int token)
{
char buf[256];
char buf[256 + 128];
char tbuf[256];
eo_lexer_token_to_str(token, tbuf);
snprintf(buf, sizeof(buf), "'%s' expected", tbuf);