# HG changeset patch # User Olaf Wintermann # Date 1694076673 -7200 # Node ID 379fe18568007916d3ef91e95bd5dc14a27827a0 # Parent 2e29d0c2fb3bfa6d5b8acfdb8782cbb6cf022067 fix send_string_escaped diff -r 2e29d0c2fb3b -r 379fe1856800 src/server/webdav/multistatus.c --- a/src/server/webdav/multistatus.c Thu Sep 07 10:06:04 2023 +0200 +++ b/src/server/webdav/multistatus.c Thu Sep 07 10:51:13 2023 +0200 @@ -185,9 +185,9 @@ // begin next chunk begin = end + 1; } - ptrdiff_t len = end - begin; + ptrdiff_t len = str.ptr + str.length - begin; if(len > 0) { - writer_put(out, begin, len + 1); + writer_put(out, begin, len); begin = end + 1; } }