summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-02-26 20:32:18 +0000
committerjhb <jhb@FreeBSD.org>2001-02-26 20:32:18 +0000
commit91c34bffe746c6d5b4c5d24b948402a56625d87d (patch)
tree87b66d6d1dd50ff26570dd579296e27a64bc9d05 /sys/netinet/tcp_timer.c
parentbe8339b765b77b578b292a469cb0ddd001b5f534 (diff)
downloadFreeBSD-src-91c34bffe746c6d5b4c5d24b948402a56625d87d.zip
FreeBSD-src-91c34bffe746c6d5b4c5d24b948402a56625d87d.tar.gz
When ensuring the destination buffer is truncated for a string obtained
from a BIF, use the size of the destinatino buffer, not the length of the string to determine where to put the nul char. As a side effect, the old code would truncate the string by one character while it was possibly overflowing the buffer.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud