提交 8ccba0d9 编写于 作者: S Simon Fels 提交者: GitHub

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

qemud: send message size in hexadecimal format
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册