diff --git a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c index 24ef3656b7..a7bc33cb23 100644 --- a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c +++ b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_cmd.c @@ -612,7 +612,7 @@ static UINT8 bta_ag_parse_chld(tBTA_AG_SCB *p_scb, char *p_s) INT16 idx = -1; UNUSED(p_scb); - if (!isdigit(p_s[0])) { + if (!isdigit((unsigned char)p_s[0])) { return BTA_AG_INVALID_CHLD; }