You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/10/23 10:15:29 UTC

[GitHub] maskit commented on issue #2814: Fix memory issue in cpp ZTSClient

maskit commented on issue #2814: Fix memory issue in cpp ZTSClient
URL: https://github.com/apache/pulsar/pull/2814#issuecomment-432187092
 
 
   > Sorry, already null terminated string is set to result[strlen(result)].
   
   result[strlen(result)] is *always* 0, because strlen finds the first 0. Where you need to put 0 is result[length].
   
   > but, I'd like to initialize memory.
   
   What’s the pros?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services