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:
committed by
Nick Wellnhofer
parent
ec8ff95ce3
commit
b66c19612c
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user