1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

Use strtoul() instead of sscanf, and correct data types that break GCC.

This commit is contained in:
Damjan Jovanovic
2021-05-30 11:11:33 +02:00
committed by Nick Wellnhofer
parent ec8ff95ce3
commit b66c19612c

View File

@@ -4999,7 +4999,7 @@ xmlFAParseCharClassEsc(xmlRegParserCtxtPtr ctxt) {
hex_buffer[loop] = CUR;
}
hex_buffer[4] = 0;
sscanf(hex_buffer, "%x", &ctxt->atom->codepoint);
ctxt->atom->codepoint = (int)strtoul(hex_buffer, NULL, 16);
break;
}
default: