Commit d2ed254f authored by Mark Andrews's avatar Mark Andrews
Browse files

(..., "%03u", 2) was not zero filling

parent d43730bb
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment