Skip to content

Commit

Permalink
Fix closing brace skips after a builtin conversion
Browse files Browse the repository at this point in the history
Apply commit 6b14d7aa102aa3190362f2209d38c054eed85c46 from
https://github.com/cesanta/frozen, really.

Wasted a few hours chasing this already fixed bug anew, since
https://mongoose-os.com/docs/mongoose-os/api/core/frozen.h.md points at the
fixed source elsewhere rather than this mismaintained copy: what's the need for
it?  Can't src/frozen be, e.g., a Git module-based Mongoose OS library?
  • Loading branch information
QRPp committed Apr 19, 2021
1 parent bc8ddbe commit b40c182
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 b40c182

Please sign in to comment.