Commit 02e9c048 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Handle bytes >= 0x80 correctly

parent 61d68a13
......@@ -290,7 +290,7 @@ static void write_string(json_renderer_t *renderer, const char *string, unsigned
if (*string < 0x20) {
if (((unsigned char)*string) < 0x20) {
char buf[7];
snprintf(buf, sizeof(buf), "\\u%.4x", (unsigned int)*string);
write_raw(renderer, buf, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment