From: Pascal Cuoq Date: Tue, 21 Jul 2020 15:54:26 +0000 (+0200) Subject: Fixes #645 X-Git-Tag: json-c-0.15-20200726~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F646%2Fhead;p=thirdparty%2Fjson-c.git Fixes #645 --- diff --git a/json_tokener.c b/json_tokener.c index 63e02a14..6527270d 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -430,7 +430,7 @@ struct json_object *json_tokener_parse_ex(struct json_tokener *tok, const char * { char inf_char = *str; if (!(tok->flags & JSON_TOKENER_STRICT)) - inf_char = tolower((int)*str); + inf_char = tolower((unsigned char)*str); if (inf_char != _json_inf_str[tok->st_pos]) { tok->err = json_tokener_error_parse_unexpected;