Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
d2ed254f
Commit
d2ed254f
authored
Apr 26, 2000
by
Mark Andrews
Browse files
(..., "%03u", 2) was not zero filling
parent
d43730bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/print.c
View file @
d2ed254f
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment