Skip to content

Commit

Permalink
Merge pull request #575 from QRPp/dont-skip-brace-after-builtin-conv
Browse files Browse the repository at this point in the history
Fix closing brace skips after a builtin conversion
  • Loading branch information
rojer committed Apr 19, 2021
2 parents bc8ddbe + b40c182 commit 8c0c40a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frozen/frozen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,8 @@ int json_vscanf(const char *s, int len, const char *fmt, va_list ap) {
memcpy(fmtbuf, fmt + i, conv_len);
fmtbuf[conv_len] = '\0';
i += conv_len;
i += strspn(fmt + i, delims);
if (fmt[i] != '}')
i += strspn(fmt + i, delims);
break;
}
}
Expand Down

0 comments on commit 8c0c40a

Please sign in to comment.