Skip to content

Commit 8879413

Browse files
committed
Add comment to explain the behavior
1 parent e56d629 commit 8879413

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
@@ -36,7 +36,7 @@ static void msc_xml_on_start_elementns(
3636
xml_parser_state->pathlen += (taglen + 1);
3737
char *newpath = apr_pstrcat(msr->mp, xml_parser_state->currpath, ".", (char *)localname, NULL);
3838
xml_parser_state->currpath = newpath;
39-
xml_parser_state->currpathbufflen += taglen + 1;
39+
xml_parser_state->currpathbufflen += taglen + 1; // +1 for the '.' character here too
4040

4141
int *new_stack_item = (int *)apr_array_push(xml_parser_state->has_child_stack);
4242
*new_stack_item = 0;

0 commit comments

Comments
 (0)