1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[link] cast to unsigned char . Refs #132

This bug was caused by changes unsigned char * -> char *
This commit is contained in:
Witold Filipczyk 2021-11-19 15:31:05 +01:00
parent 44c7cedfea
commit 0e45f743a7

View File

@ -1886,7 +1886,7 @@ put_chars(struct html_context *html_context, char *chars, int charslen)
* by the parser putting a space char after stuff like
* <img>-tags or comments wrapped in <a>-tags. See bug
* 30 for test case. */
while (x_offset < charslen && chars[x_offset] <= ' ')
while (x_offset < charslen && (unsigned char)chars[x_offset] <= ' ')
x_offset++;
/* For pure spaces reset the link state */