Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
proper format str for logging in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Sep 29, 2017
1 parent 7c13a57 commit de287b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)

ch = data[i];

log_debug("[%p] data[%d] = %c (%x)", p, i, isprint(ch) ? ch : ' ', ch);
log_debug("[%p] data[%zu] = %c (%x)", p, i, isprint(ch) ? ch : ' ', ch);

if (p->buf_idx >= PARSER_STACK_MAX) {
p->error = htparse_error_too_big;
Expand Down

0 comments on commit de287b0

Please sign in to comment.