]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337458, r337618:
authorpfg <pfg@FreeBSD.org>
Tue, 14 Aug 2018 22:57:28 +0000 (22:57 +0000)
committerpfg <pfg@FreeBSD.org>
Tue, 14 Aug 2018 22:57:28 +0000 (22:57 +0000)
commit1bb90d01acca0d81bdecd26ec66f1c78470cff05
treece748f7d5fb153646d177ac95c9654a196eb26b7
parent2c0c29a3880db47098b28cff7a47fe20486cbab2
MFC r337458, r337618:
Fix printf(1) ignores width and precision in %b format.

The precision with the conversion specifier b is specified by POSIX: see
point 7 in the reference documentation.

Include fix from jilles@ to avoid breaking the testsuite.

Reference: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html

PR: 229641
Reported by: Rudolf Cejka
Submitted by: Garrett D'Amore (illumos)
usr.bin/printf/printf.c