char[] need init
nqf opened this issue · 2 comments
nqf commented
Sometimes there is garbled code
https://github.com/an-tao/trantor/blob/master/trantor/net/InetAddress.cc#L188
marty1885 commented
Thanks for making the issue. We are looking into it as there may be a deeper issue since inet_ntop always adds tailing 0s on success.
nqf commented
I don't know why, but I think it might be safer to initialize it because it sometimes prints random code in my application.