You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/01/27 08:22:12 UTC

[GitHub] [rocketmq-client-cpp] kevinrsa commented on issue #342: string terminator '\0' should be considered here

kevinrsa commented on issue #342:
URL: https://github.com/apache/rocketmq-client-cpp/issues/342#issuecomment-768118191


   > @kevinrsa I think use '%.*s' instead of '%s' is ok. Please test it, and welcome to pr.
   > 
   > ```c++
   > LOG_DEBUG("msgBody is:%.*s, msgBody length is:%d", pBody->getSize(), msg_body, pBody->getSize()); 
   > ```
   
   Thanks for the suggestion, it work.
   
   ---
   
   This is another valgrind error message, it should be '%d'.
   
   https://github.com/apache/rocketmq-client-cpp/blob/9008c14d9c34a4f0b4a67417000612348157027e/src/transport/TcpRemotingClient.cpp#L625


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org