https://issues.apache.org/bugzilla/show_bug.cgi?id=56452
--- Comment #5 from Konstantin Kolinko <knst.koli...@gmail.com> --- (In reply to Christopher Schultz from comment #4) > That's only 97 bytes plus a NULL-terminator. Where did you get the 39 from? 39 is the size of IPv6 address in the form used in your example. You have two IPv6 addresses in that string. 45-39 = 6 characters missing x 2 IPv6 addresses = 12 more characters are needed in the buffer. > we > could do something like this if you'd prefer: > > char buf[sizeof "0000:0000:0000:0000:0000:0000:192.168.0.1:65535 -> > 0000:0000:0000:0000:0000:0000:192.168.0.1:65535" + 1]; First, the above code has an error. The IPv4 address part can be longer by 4 decimal digits than the one written above. Second, I do not care on the actual implementation. I mentioned APR code as an example of their output. The stackoverflow article mentioned INET6_ADDRSTRLEN constant, but I do not know whether that is portable. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org