raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=01139b419df55f0776b950b7dfca2d2647bbd34e

commit 01139b419df55f0776b950b7dfca2d2647bbd34e
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Nov 6 16:07:28 2018 +0000

    eo - parser - fix warning about truncated strings with snprintf
    
    expand buffer to never truncate.
---
 src/lib/eolian/eo_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 8ca0702935..c8b7f14902 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -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);

-- 


Reply via email to