C++ %!@?#
This commit is contained in:
1 parent
da1a36bf11
commit
940a96bd36
1 file changed
+2
-2
@@ -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<intptr_t>(*ppvhandler));
|
||||
//LOG(Api,Diag,"Send rpc reply: {}",reinterpret_cast<intptr_t>(*ppvhandler));
|
||||
qbus::ReplyHandler** pphandler = reinterpret_cast<qbus::ReplyHandler**>(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<qbus::RPCReply>(move(reply_buffer));
|
||||
(**pphandler)(replyptr);
|
||||
delete (*pphandler);
|
||||
|
||||
Reference in new issue
Block a user