From 8879413abf507b1921f6feb292ee91e0f0064b01 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Thu, 26 Jun 2025 21:50:54 +0200 Subject: [PATCH] Add comment to explain the behavior --- apache2/msc_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/msc_xml.c b/apache2/msc_xml.c index 8df3280b..1deac6fc 100644 --- a/apache2/msc_xml.c +++ b/apache2/msc_xml.c @@ -36,7 +36,7 @@ static void msc_xml_on_start_elementns( xml_parser_state->pathlen += (taglen + 1); char *newpath = apr_pstrcat(msr->mp, xml_parser_state->currpath, ".", (char *)localname, NULL); xml_parser_state->currpath = newpath; - xml_parser_state->currpathbufflen += taglen + 1; + xml_parser_state->currpathbufflen += taglen + 1; // +1 for the '.' character here too int *new_stack_item = (int *)apr_array_push(xml_parser_state->has_child_stack); *new_stack_item = 0;