diff --git a/src/lib/api/core/ApiServerInterop.cpp b/src/lib/api/core/ApiServerInterop.cpp index f44272321..168281c2f 100644 --- a/src/lib/api/core/ApiServerInterop.cpp +++ b/src/lib/api/core/ApiServerInterop.cpp @@ -41,9 +41,9 @@ CAPI ApiServerCore* api_server_create(Quickbus* pbus, const char* type_name, con CAPI void api_server_call_callback(ReplyHandler** ppvhandler, const uint8_t* buffer, int length) { bts_assert(ppvhandler); bts_assert(*ppvhandler); - LOG(Api,Diag,"Send rpc reply: {}",reinterpret_cast(*ppvhandler)); + //LOG(Api,Diag,"Send rpc reply: {}",reinterpret_cast(*ppvhandler)); qbus::ReplyHandler** pphandler = reinterpret_cast(ppvhandler); - std::string reply_buffer((const char*)buffer, length); + std::string reply_buffer((const char*)buffer, (size_t)length); qbus::RPCReplyPtr replyptr = std::make_shared(move(reply_buffer)); (**pphandler)(replyptr); delete (*pphandler);