Merge pull request #23 from morphis/bug/send-correct-header-size
qemud: send message size in hexadecimal format
This commit is contained in:
commit
8ccba0d987
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue