summaryrefslogtreecommitdiffstats
path: root/share/misc
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-08-15 21:19:31 +0000
committerrobert <robert@FreeBSD.org>2002-08-15 21:19:31 +0000
commitfe770f50bf1675781f47c1d056f4aa8468011596 (patch)
treecd1c9e51eb23323a92ebc36ddc0e35200c7afcfb /share/misc
parent40c52b591349f2d4fd430ad583b5b179f45a2512 (diff)
downloadFreeBSD-src-fe770f50bf1675781f47c1d056f4aa8468011596.zip
FreeBSD-src-fe770f50bf1675781f47c1d056f4aa8468011596.tar.gz
- Fix a bug that wrote one char behind the end of the
supplied buffer in case the size of it was equal to the number of characters the converted address consumed. The bug occurred when converting an AF_INET address. - Remove the SPRINTF macro and use sprintf instead. - Do not do string formatting using sprintf(3) and a temporary buffer which is copied when the supplied buffer provides enough space. Instead, use snprintf(3) and the real destination buffer, thus avoid the copy. Reported by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> (1) PR: misc/41289
Diffstat (limited to 'share/misc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud