Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 21, 2024
1 parent 646f123 commit d6aa707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/json/ext/parser/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RBIMPL_ATTR_NORETURN()
static void raise_parse_error(const char *format, const char *start)
{
size_t len = *start ? strnlen(start, PARSE_ERROR_FRAGMENT_LEN) : 0;
fprintf(stderr, "strnlen = %ld\n", len);
fprintf(stderr, "strnlen = %ld *start = %d\n", len, *start);
const char *ptr = start;
if (len == PARSE_ERROR_FRAGMENT_LEN) {
char buffer[PARSE_ERROR_FRAGMENT_LEN + 1];
Expand Down
2 changes: 1 addition & 1 deletion ext/json/ext/parser/parser.rl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ RBIMPL_ATTR_NORETURN()
static void raise_parse_error(const char *format, const char *start)
{
size_t len = *start ? strnlen(start, PARSE_ERROR_FRAGMENT_LEN) : 0;
fprintf(stderr, "strnlen = %ld\n", len);
fprintf(stderr, "strnlen = %ld *start = %d\n", len, *start);
const char *ptr = start;
if (len == PARSE_ERROR_FRAGMENT_LEN) {
char buffer[PARSE_ERROR_FRAGMENT_LEN + 1];
Expand Down

0 comments on commit d6aa707

Please sign in to comment.