projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tsearch test fix
[libc-test]
/
src
/
functional
/
snprintf.c
diff --git
a/src/functional/snprintf.c
b/src/functional/snprintf.c
index
600cd11
..
c96f151
100644
(file)
--- a/
src/functional/snprintf.c
+++ b/
src/functional/snprintf.c
@@
-36,11
+36,11
@@
static const struct {
{ "%0-5d", 12, "12 " },
{ "%-05d", 12, "12 " },
{ "%0-5d", 12, "12 " },
{ "%-05d", 12, "12 " },
- /* ...explicit precision of 0 shall be no characters. */
+ /* ...explicit precision of 0 shall be no characters
except for alt-octal
. */
{ "%.0d", 0, "" },
{ "%.0o", 0, "" },
{ "%#.0d", 0, "" },
{ "%.0d", 0, "" },
{ "%.0o", 0, "" },
{ "%#.0d", 0, "" },
- { "%#.0o", 0, "" },
+ { "%#.0o", 0, "
0
" },
{ "%#.0x", 0, "" },
/* ...but it still has to honor width and flags. */
{ "%#.0x", 0, "" },
/* ...but it still has to honor width and flags. */