all repos — st @ af3bb68add1c40d19d0dee382009e21b0870a38f

st (suckless terminal) config

avoid potential UB when using isprint()

all the ctype.h functions' argument must be representable as an unsigned
char or as EOF, otherwise the behavior is undefined.
NRK nrk@disroot.org
commit

af3bb68add1c40d19d0dee382009e21b0870a38f

parent

2aefa348baf4b702fdce98eb105bcba175d8283f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M st.cst.c

@@ -367,7 +367,7 @@

char base64dec_getc(const char **src) { - while (**src && !isprint(**src)) + while (**src && !isprint((unsigned char)**src)) (*src)++; return **src ? *((*src)++) : '='; /* emulate padding if string ends */ }