]> git.ipfire.org Git - thirdparty/hostap.git/commit
JSON: Fix escaping of characters that have MSB=1 with signed char
authorJouni Malinen <j@w1.fi>
Sun, 27 Oct 2019 15:08:31 +0000 (17:08 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2019 17:50:22 +0000 (19:50 +0200)
commit1030dec1facba1b82225a801fd5e79e6700780b1
tree8e134de047737afb5327ea4eccd10fb25589e0e6
parentdcafde0c32d8d69a3854a8b416e20fa5b34949e5
JSON: Fix escaping of characters that have MSB=1 with signed char

The "\\u%04x" printf string did not really work in the correct way if
char is signed. Fix this by type casting this to unsigned char.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/json.c