mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
read_http_post_inline: fix assertion-failed message
read_http_post_inline decodes two hexadecimal digits into one byte at a time, and it asserts that each hexadecimal digit is valid; however, both assertions print the first digit when they fail. Fix the assertion on the second digit to print the second digit.
This commit is contained in:
parent
daa6f36e83
commit
f8bdc3ca9e
@ -177,7 +177,7 @@ read_http_post_inline(struct http_post *http_post,
|
||||
if_assert_failed h1 = 0;
|
||||
|
||||
h2 = unhx(post[1]);
|
||||
assertm(h2 >= 0 && h2 < 16, "h2 in the POST buffer is %d (%d/%c)", h2, post[0], post[0]);
|
||||
assertm(h2 >= 0 && h2 < 16, "h2 in the POST buffer is %d (%d/%c)", h2, post[1], post[1]);
|
||||
if_assert_failed h2 = 0;
|
||||
|
||||
buffer[total++] = (h1<<4) + h2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user