summaryrefslogtreecommitdiffhomepage
path: root/lib/resolv.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-03-31 09:30:08 +0200
committerJo-Philipp Wich <jo@mein.io>2022-03-31 09:58:04 +0200
commita37f65471c2b69fa588cbf8e9794ff1fe6d04605 (patch)
treee964e6dd6fd2ff33eaa4dc6164572311fc6468b7 /lib/resolv.c
parentaae5312a6f117ebb4e12ae500d8d3001d59d2db3 (diff)
types: fix escape sequence encoding of high byte values in JSON strings
Treat the char value as unsigned when testing its value to yield consistent results on both platforms with signed chars and those with unsigned chars by default (e.g. ARM ones). This also avoids encoding byte values > 127 as \uXXXX escape sequences, potentially breaking the strng contents. Fixes: #62 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/resolv.c')
0 files changed, 0 insertions, 0 deletions