dyoung bfa27930cb In sockaddr_snprintf(sbuf, len, fmt, sa), do not write the terminating
null character outside of the byte region [sbuf, sbuf + len).

1) If the length of the buffer is 0, do not write a null character
   at all.  Previously, sockaddr_snprintf() may have been able to
   overwrite sbuf[-1] if len was 0.

2) If the length of the buffer, len, is greater than 0, then write
   the null at sbuf[len - 1].  Previously, sockaddr_snprintf()
   wrote the null at buf[len - 1], where `buf' was a "cursor" that
   did not necessarily equal `sbuf', the start of the buffer.  Now,
   sockaddr_snprintf() always writes the null at sbuf[len - 1].
2007-07-24 08:45:45 +00:00
..
2007-07-01 21:41:16 +00:00
2007-07-01 21:41:16 +00:00
2007-02-04 08:19:26 +00:00
2007-07-01 21:41:16 +00:00
2006-12-20 16:47:13 +00:00
2006-12-20 16:47:13 +00:00
2007-01-09 14:04:44 +00:00
2007-01-09 14:04:44 +00:00
2007-07-01 21:41:16 +00:00
2006-12-23 09:55:47 +00:00