mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Fix warning (Issue #301)
This commit is contained in:
parent
83e9b0a6bc
commit
069a353eaf
@ -8,11 +8,13 @@
|
|||||||
- Added new `MXML_TYPE_CDATA`, `MXML_TYPE_COMMENT`, `MXML_TYPE_DECLARATION`, and
|
- Added new `MXML_TYPE_CDATA`, `MXML_TYPE_COMMENT`, `MXML_TYPE_DECLARATION`, and
|
||||||
`MXML_TYPE_DIRECTIVE` node types (Issue #250)
|
`MXML_TYPE_DIRECTIVE` node types (Issue #250)
|
||||||
- Added `mxmlLoadFilename` and `mxmlSaveFilename` functions (Issue #291)
|
- Added `mxmlLoadFilename` and `mxmlSaveFilename` functions (Issue #291)
|
||||||
|
- Added AFL fuzzing support (Issue #306)
|
||||||
- Renamed `mxml_type_t` enumerations to `MXML_TYPE_xxx` (Issue #251)
|
- Renamed `mxml_type_t` enumerations to `MXML_TYPE_xxx` (Issue #251)
|
||||||
- Updated APIs to use bool type instead of an int representing a boolean value.
|
- Updated APIs to use bool type instead of an int representing a boolean value.
|
||||||
- Updated the SAX callback to return a `bool` value to control processing
|
- Updated the SAX callback to return a `bool` value to control processing
|
||||||
(Issue #51)
|
(Issue #51)
|
||||||
- Updated the load and save callbacks to include a context pointer (Issue #106)
|
- Updated the load and save callbacks to include a context pointer (Issue #106)
|
||||||
|
- Fixed some warnings (Issue #301)
|
||||||
|
|
||||||
|
|
||||||
# Changes in Mini-XML 3.3.2
|
# Changes in Mini-XML 3.3.2
|
||||||
|
@ -117,7 +117,7 @@ mxmlFindPath(mxml_node_t *top, // I - Top node
|
|||||||
if ((pathsep = strchr(path, '/')) == NULL)
|
if ((pathsep = strchr(path, '/')) == NULL)
|
||||||
pathsep = path + strlen(path);
|
pathsep = path + strlen(path);
|
||||||
|
|
||||||
if (pathsep == path || (pathsep - path) >= sizeof(element))
|
if (pathsep == path || (size_t)(pathsep - path) >= sizeof(element))
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
memcpy(element, path, pathsep - path);
|
memcpy(element, path, pathsep - path);
|
||||||
|
Loading…
Reference in New Issue
Block a user