[PATCH] IpAdress truncates printed port that exceeds 9999

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Fri, 30 Apr 2010 22:03:10 -0600

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.

Alex.

Received on Sat May 01 2010 - 04:03:23 MDT

This archive was generated by hypermail 2.2.0 : Sat May 01 2010 - 12:00:18 MDT