--- src/jsonrpccpp/client/connectors/unixdomainsocketclient.cpp 2015-06-27 11:54:13.000000000 -0400 +++ src/jsonrpccpp/client/connectors/unixdomainsocketclient.cpp.dlucio 2016-08-08 00:14:51.911795622 -0400 @@ -47,7 +47,7 @@ void UnixDomainSocketClient::SendRPCMess memset(&address, 0, sizeof(sockaddr_un)); address.sun_family = AF_UNIX; - snprintf(address.sun_path, PATH_MAX, this->path.c_str()); + snprintf(address.sun_path, PATH_MAX, "%s", this->path.c_str()); if(connect(socket_fd, (struct sockaddr *) &address, sizeof(sockaddr_un)) != 0) { throw JsonRpcException(Errors::ERROR_CLIENT_CONNECTOR, "Could not connect to: " + this->path); --- src/jsonrpccpp/server/connectors/unixdomainsocketserver.cpp 2015-06-27 11:54:13.000000000 -0400 +++ src/jsonrpccpp/server/connectors/unixdomainsocketserver.cpp.dlucio 2016-08-08 00:21:18.062757559 -0400 @@ -46,7 +46,7 @@ bool UnixDomainSocketServer::StartListen memset(&(this->address), 0, sizeof(struct sockaddr_un)); this->address.sun_family = AF_UNIX; - snprintf(this->address.sun_path, PATH_MAX, this->socket_path.c_str()); + snprintf(this->address.sun_path, PATH_MAX, "%s", this->socket_path.c_str()); bind(this->socket_fd, reinterpret_cast<struct sockaddr *>(&(this->address)), sizeof(struct sockaddr_un));