diff options
author | ian <ian@FreeBSD.org> | 2013-01-26 20:16:58 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2013-01-26 20:16:58 +0000 |
commit | dc3eff401fd8f122ed908c7be997eeb928fa85ba (patch) | |
tree | 587f9792ac9f1db5b4cc4122b12972c3f1132a41 /usr.bin/bc/extern.h | |
parent | 832afbadd144b65ffce4e8a87e4a6aedf20c6ad3 (diff) | |
download | FreeBSD-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