Merge pull request #23 from morphis/bug/send-correct-header-size

qemud: send message size in hexadecimal format
This commit is contained in:
Simon Fels 2017-01-20 08:33:22 +01:00 committed by GitHub
commit 8ccba0d987

View file

@ -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);
}