mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-10 17:30:47 +00:00
protobuf cleanup
This commit is contained in:
parent
1929b092fe
commit
210df87765
@ -35,9 +35,7 @@ void SerializeMessage(int fd, const google::protobuf::MessageLite& message)
|
||||
}
|
||||
|
||||
// Write the actual protobuf data
|
||||
uint8_t buf[size];
|
||||
memcpy(buf, data.data(), size);
|
||||
if (write(fd, buf, size) != size) {
|
||||
if (write(fd, data.data(), size) != size) {
|
||||
throw io_exception("Can't write protobuf data");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user