Merge pull request #521 from lag-linaro/qemud-multiple-messages

anbox: qemu: qemud_message_processor: Handle multiple 'cat'ed messages
This commit is contained in:
Simon Fels 2017-11-17 14:20:16 +01:00 committed by GitHub
commit 7266fe2d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,6 @@ void QemudMessageProcessor::process_commands() {
unsigned int body_size = 0;
::sscanf(header, "%04x", &body_size);
if (body_size != buffer_.size() - header_size) break;
std::string command;
// Make sure we only copy as much bytes as we have to and not more