# HG changeset patch # User Olaf Wintermann # Date 1513254903 -3600 # Node ID 3e20fd78e555376eb26c1f986be96db0d5a7b7ad # Parent 61c4576072b3015fef8ca711a354a0ade3a25666 fixes missing string terminator when printing simplified xml (dav get-property) diff -r 61c4576072b3 -r 3e20fd78e555 dav/main.c --- a/dav/main.c Wed Dec 13 20:01:14 2017 +0100 +++ b/dav/main.c Thu Dec 14 13:35:03 2017 +0100 @@ -1818,7 +1818,8 @@ char* xml2str(DavXmlNode *node) { char *str = malloc(256); UcxBuffer *buf = ucx_buffer_new(str, 256, UCX_BUFFER_AUTOEXTEND); - xml2str_i(node, buf, 0); + xml2str_i(node, buf, 0); + ucx_buffer_putc(buf, 0); char *space = buf->space; ucx_buffer_free(buf); return space;