mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +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[loop] = CUR;
|
||||||
}
|
}
|
||||||
hex_buffer[4] = 0;
|
hex_buffer[4] = 0;
|
||||||
sscanf(hex_buffer, "%x", &ctxt->atom->codepoint);
|
ctxt->atom->codepoint = (int)strtoul(hex_buffer, NULL, 16);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user