diff --git a/src/switch_xml.c b/src/switch_xml.c index d8d9126c82..3cad71ee38 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -111,13 +111,13 @@ static struct xml_section_t SECTIONS[] = { SWITCH_DECLARE(switch_xml_section_t) switch_xml_parse_section_string(char *str) { - int x; + size_t x; char buf[1024] = ""; switch_xml_section_t sections = SWITCH_XML_SECTION_RESULT; if (str) { for(x = 0; x < strlen(str); x++) { - buf[x] = tolower(str[x]); + buf[x] = (char)tolower(str[x]); } for(x = 0;;x++) { if (!SECTIONS[x].name) {