The idiomatic way of coping with signed char vs unsigned char (which
authorderaadt <deraadt@openbsd.org>
Thu, 15 Dec 2022 18:20:39 +0000 (18:20 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 15 Dec 2022 18:20:39 +0000 (18:20 +0000)
commit469213ebdfec10450619df35298bde2f6d7f1225
treeca59d17e72dd5d3ba2cc7503c0e526b661d10bba
parent4cf348cf21299ea743a82d6708b64b5c9b12da81
The idiomatic way of coping with signed char vs unsigned char (which
did not come from stdio read functions) in the presence of ctype
macros, is to always cast to (unsigned char).  casting to (int) for
a "macro" which is documented to take int, is weird.  And sadly wrong,
because of the sing extension risk..
same diff from florian
usr.bin/ssh/misc.c