fix send_string_escaped

Thu, 07 Sep 2023 10:51:13 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 07 Sep 2023 10:51:13 +0200
changeset 510
379fe1856800
parent 509
2e29d0c2fb3b
child 511
a5a142fea2ae

fix send_string_escaped

src/server/webdav/multistatus.c file | annotate | diff | comparison | revisions
--- 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;
     }
 }

mercurial