Skip to content

Commit

Permalink
positional arguments starts by one
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Apr 22, 2020
1 parent 8236ab7 commit 613bbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr_walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ check_fmt_string(const char *fmt,
{
if (*cp == 's')
{
int argn = argpos > 1 ? argpos : arg + 1;
int argn = argpos >= 1 ? argpos : arg + 1;

/* this is usually called after format check, but better be safe*/
if (argn <= nargs)
Expand Down

0 comments on commit 613bbb5

Please sign in to comment.