mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
(..., "%03u", 2) was not zero filling
This commit is contained in:
parent
d43730bbf2
commit
d2ed254fb8
@ -297,7 +297,9 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
|
||||
length = strlen(buf);
|
||||
if (length < precision)
|
||||
zeropad = precision - length;
|
||||
if (width) {
|
||||
else if (length < width && zero)
|
||||
zeropad = width - length;
|
||||
if (width != 0) {
|
||||
pad = width - length -
|
||||
zeropad - strlen(head);
|
||||
if (pad < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user