From 0cd1ae965c1b2bad97d4fb96b9de3a5ae8a66841 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 31 Oct 2023 22:11:18 +0100 Subject: [PATCH] Berry fix warning in be_lexer (#19892) --- lib/libesp32/berry/src/be_lexer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libesp32/berry/src/be_lexer.c b/lib/libesp32/berry/src/be_lexer.c index b558a72ff..90031d3f6 100644 --- a/lib/libesp32/berry/src/be_lexer.c +++ b/lib/libesp32/berry/src/be_lexer.c @@ -271,9 +271,7 @@ static void skip_comment(blexer *lexer) c = next(lexer); } while (!(mark && c == '#') && c != EOS); if (c == EOS) { - char tmp[64]; - sprintf(tmp, "unterminated comment block started in line %d", lno); - be_lexerror(lexer, tmp); + be_lexerror(lexer, be_pushfstring(lexer->vm, "unterminated comment block started in line %d", lno)); } next(lexer); /* skip '#' */ } else { /* line comment */