Skip to content

Commit 8cb7fc8

Browse files
committed
Set correct length of currpath
1 parent f9e81f2 commit 8cb7fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void msc_xml_on_end_elementns(
112112
// -1 is needed because we don't need the last '.'
113113
char * newpath = apr_pstrndup(msr->mp, xml_parser_state->currpath, xml_parser_state->pathlen - 1);
114114
xml_parser_state->currpath = newpath;
115-
xml_parser_state->currpathbufflen = xml_parser_state->pathlen - 2; // -2 because of the '\0' and the last '.'
115+
xml_parser_state->currpathbufflen = xml_parser_state->pathlen - 1;
116116

117117
xml_parser_state->depth--;
118118
xml_parser_state->currval = NULL;

0 commit comments

Comments
 (0)