summaryrefslogtreecommitdiffstats
path: root/usr.bin/bc/extern.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2013-01-26 20:16:58 +0000
committerian <ian@FreeBSD.org>2013-01-26 20:16:58 +0000
commitdc3eff401fd8f122ed908c7be997eeb928fa85ba (patch)
tree587f9792ac9f1db5b4cc4122b12972c3f1132a41 /usr.bin/bc/extern.h
parent832afbadd144b65ffce4e8a87e4a6aedf20c6ad3 (diff)
downloadFreeBSD-src-dc3eff401fd8f122ed908c7be997eeb928fa85ba.zip
FreeBSD-src-dc3eff401fd8f122ed908c7be997eeb928fa85ba.tar.gz
Fix a buffer overrun while pre-formatting the names array, perpetrated in
the prior commit. Use essentially the same sprintf() statement for both formatting and pre-formatting, and use a format string which eliminates the need for an extra temporary buffer when formatting the name. Noted by: Christoph Mallon Pointy hat to: ian Approved by: cognet (mentor)
Diffstat (limited to 'usr.bin/bc/extern.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud