From c199e519ba1cf5d65814cb8d2276891c72a9343a Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Fri, 20 Jan 2017 07:29:35 +0100 Subject: [PATCH] qemud: send message size in hexadecimal format All sizes need to be printed in hexadecimal. Otherwise size of the actual data doesn't match and messages are not processed inside the container. --- src/anbox/qemu/qemud_message_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/qemu/qemud_message_processor.cpp b/src/anbox/qemu/qemud_message_processor.cpp index 6798766..c9d5b50 100644 --- a/src/anbox/qemu/qemud_message_processor.cpp +++ b/src/anbox/qemu/qemud_message_processor.cpp @@ -71,7 +71,7 @@ void QemudMessageProcessor::process_commands() { void QemudMessageProcessor::send_header(const size_t &size) { char header[header_size + 1]; - std::snprintf(header, header_size + 1, "%04lu", size); + std::snprintf(header, header_size + 1, "%04lx", size); messenger_->send(header, header_size); }