diff options
Diffstat (limited to 'src/shared/json.c')
-rw-r--r-- | src/shared/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index 919f7f79db..f0416e66dc 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -1512,7 +1512,7 @@ static void json_format_string(FILE *f, const char *q, JsonFormatFlags flags) { default: if ((signed char) *q >= 0 && *q < ' ') - fprintf(f, "\\u%04x", *q); + fprintf(f, "\\u%04x", (unsigned) *q); else fputc(*q, f); break; |