summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2008-08-04 06:53:13 +0000
committercperciva <cperciva@FreeBSD.org>2008-08-04 06:53:13 +0000
commitf33a169622381195f221b9372e38ab0a5ac83428 (patch)
treef2dfd90e02feb82d9892247db9b94f61bc150462 /lib/libc/stdio/vfwprintf.c
parent16fd05844bbb7394ac778ed5a036553d6536c18b (diff)
downloadFreeBSD-src-f33a169622381195f221b9372e38ab0a5ac83428.zip
FreeBSD-src-f33a169622381195f221b9372e38ab0a5ac83428.tar.gz
Set "max" to a reasonable value if BLOCKSIZE has a bogus unit. Prior
to this commit, "env BLOCKSIZE=4X df" prints not only "4X: unknown blocksize" as expected, but sometimes also "maximum blocksize is 1G" and "minimum blocksize is 512" depending on what happened to be on the stack. Found by: LLVM/Clang Static Checker
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud