From 93288463d396ef7f044bca50485df5121dc837b8 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 4 Jul 2011 11:56:26 -0400 Subject: printf: "if a precision is specified, the '0' flag shall be ignored." --- snprintf.c | 4 ++-- 1 file 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, "+" }, -- cgit v1.2.1