X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffunctional%2Fsnprintf.c;h=c96f151ace1908c1e811ee6024edc0646feccc1a;hb=ec0d497d9d1190047f9fd35fbc859eb02d52c730;hp=600cd118312f229905371e0714c8f6d03a228273;hpb=09c020c3edd7978b22a73d1529a049222a615262;p=libc-test diff --git a/src/functional/snprintf.c b/src/functional/snprintf.c index 600cd11..c96f151 100644 --- a/src/functional/snprintf.c +++ b/src/functional/snprintf.c @@ -36,11 +36,11 @@ static const struct { { "%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, "" }, - { "%#.0o", 0, "" }, + { "%#.0o", 0, "0" }, { "%#.0x", 0, "" }, /* ...but it still has to honor width and flags. */