From d7abedac1b4ff6564f656fcc99ea222bfa6901a2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 23 Apr 2023 22:45:35 +0200 Subject: [PATCH] Fix length()/bytes() mismatch on XML string. --- src/lib/dcp_video.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 5879d6be6..0255588c6 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -229,7 +229,7 @@ DCPVideo::encode_remotely (EncodeServerDescription serv, int timeout) const /* Send XML metadata */ auto xml = doc.write_to_string ("UTF-8"); - socket->write (xml.length() + 1); + socket->write(xml.bytes() + 1); socket->write ((uint8_t *) xml.c_str(), xml.bytes() + 1); /* Send binary data */ -- 2.30.2