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:
Simon Fels 2018-04-04 10:36:28 +02:00 committed by GitHub
commit f68725cff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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