]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ip/Address.cc
Fixed IpAddress port printing for ports higher than 9999:
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 1 May 2010 04:12:07 +0000 (22:12 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 1 May 2010 04:12:07 +0000 (22:12 -0600)
commit842fe4ccb857cf933cec6932c3e89e841732f88c
treeeb59522cb492c76b7c995694ddd728cef3892ae4
parent38344a8e36864a4c9314531b39cdd402cc77d38c
Fixed IpAddress port printing for ports higher than 9999:
snprintf includes zero-terminator in its size limit, so 7
rather than 6 bytes are needed to snprintf a colon followed
by 5 port digits.

Whether the bug has any runtime effects in the current code,
I do not know, but I did waste a few hours following
misleading debugging output.
src/ip/IpAddress.cc