forked from enlightenment/efl
eo - parser - fix warning about truncated strings with snprintf
expand buffer to never truncate.
This commit is contained in:
parent
07177d540c
commit
01139b419d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue