diff --git a/src/message_dispatcher.cpp b/src/message_dispatcher.cpp index 58d4a83bd..a3b327ae9 100644 --- a/src/message_dispatcher.cpp +++ b/src/message_dispatcher.cpp @@ -174,7 +174,7 @@ void MessageDispatcher::ReceiveMessage() { // Encapsulate the message in a ZMQ message and send to the // validator zmqpp::message message; - message.add(msg_data.data(), msg_data.length()); + message.add(msg_data.data()); this->server_socket.send(message); break; @@ -229,7 +229,7 @@ void MessageDispatcher::HandleConnectionChange(){ msg.SerializeToString(&msg_data); zmqpp::message zmsg; - zmsg.add(msg_data.data(), msg_data.length()); + zmsg.add(msg_data.data()); this->processing_request_socket.send(zmsg); } }