Skip to content

Commit

Permalink
Fix issue vsprintf => nvsprintf
Browse files Browse the repository at this point in the history
To be squashed with the previous patch.
  • Loading branch information
ArthurSonzogni committed Mar 27, 2021
1 parent ad55241 commit 2bbd2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parser.act
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
error.column= lex_state->lx.start.col;
va_list ap;
va_start(ap, fmt);
snprintf(error.description, PARSING_ERROR_DESCRIPTION_SIZE, fmt, ap);
vsnprintf(error.description, PARSING_ERROR_DESCRIPTION_SIZE, fmt, ap);
va_end(ap);

parsing_error_queue_push(&(lex_state->errors), error);
Expand Down Expand Up @@ -688,7 +688,7 @@

<add-rule-to-list>: (l :ast_rule, r :ast_rule) -> () = @{
if (ast_find_rule(@l, @r->name)) {
err(lex_state, "production rule <%s> already exists", @r->name);
err(lex_state, @r->name);
return;
}

Expand Down
1 change: 0 additions & 1 deletion src/rbnf/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2bbd2a1

Please sign in to comment.