We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e81f2 commit 8cb7fc8Copy full SHA for 8cb7fc8
apache2/msc_xml.c
@@ -112,7 +112,7 @@ static void msc_xml_on_end_elementns(
112
// -1 is needed because we don't need the last '.'
113
char * newpath = apr_pstrndup(msr->mp, xml_parser_state->currpath, xml_parser_state->pathlen - 1);
114
xml_parser_state->currpath = newpath;
115
- xml_parser_state->currpathbufflen = xml_parser_state->pathlen - 2; // -2 because of the '\0' and the last '.'
+ xml_parser_state->currpathbufflen = xml_parser_state->pathlen - 1;
116
117
xml_parser_state->depth--;
118
xml_parser_state->currval = NULL;
0 commit comments