Skip to content

Commit e56d629

Browse files
committed
Set correct pathlen
1 parent 8cb7fc8 commit e56d629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apache2/msc_xml.c

Lines changed: 2 additions & 2 deletions
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;
39+
xml_parser_state->currpathbufflen += taglen + 1;
4040

4141
int *new_stack_item = (int *)apr_array_push(xml_parser_state->has_child_stack);
4242
*new_stack_item = 0;
@@ -98,7 +98,7 @@ static void msc_xml_on_end_elementns(
9898

9999
if (msr->txcfg->debuglog_level >= 9) {
100100
msr_log(msr, 9, "Adding XML argument '%s' with value '%s'",
101-
xml_parser_state->currpath, arg->value);
101+
arg->name, arg->value);
102102
}
103103

104104
apr_table_addn(msr->arguments,

0 commit comments

Comments
 (0)