Merge pull request #667 from sideeffffect/master
Use the `z` as print format for `size_t` variable instead of `l` to m…
This commit is contained in:
commit
f68725cff8
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ void QemudMessageProcessor::process_commands() {
|
|||
|
||||
void QemudMessageProcessor::send_header(const size_t &size) {
|
||||
char header[header_size + 1];
|
||||
std::snprintf(header, header_size + 1, "%04lx", size);
|
||||
std::snprintf(header, header_size + 1, "%04zx", size);
|
||||
messenger_->send(header, header_size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue