summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-07-04 11:56:26 -0400
committerRich Felker <dalias@aerifal.cx>2011-07-04 11:56:26 -0400
commit93288463d396ef7f044bca50485df5121dc837b8 (patch)
treee8c4aab88661d4bc5471bc8f3b303575c19d2c7b
parent8b550a220c1c6ba4376e121087cbfd27931cd278 (diff)
downloadlibc-testsuite-93288463d396ef7f044bca50485df5121dc837b8.tar.gz
printf: "if a precision is specified, the '0' flag shall be ignored."
-rw-r--r--snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/snprintf.c b/snprintf.c
index 115bbe2..5310acc 100644
--- a/snprintf.c
+++ b/snprintf.c
@@ -39,9 +39,9 @@ static const struct {
/* ...but it still has to honor width and flags. */
{ "%2.0u", 0, " " },
- { "%02.0u", 0, "00" },
+ { "%02.0u", 0, " " },
{ "%2.0d", 0, " " },
- { "%02.0d", 0, "00" },
+ { "%02.0d", 0, " " },
{ "% .0d", 0, " " },
{ "%+.0d", 0, "+" },