projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc44d9f
)
printf: "if a precision is specified, the '0' flag shall be ignored."
author
Rich Felker
<dalias@aerifal.cx>
Mon, 4 Jul 2011 15:55:52 +0000
(11:55 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 4 Jul 2011 15:55:52 +0000
(11:55 -0400)
src/stdio/vfprintf.c
patch
|
blob
|
history
diff --git
a/src/stdio/vfprintf.c
b/src/stdio/vfprintf.c
index 67660121a71e3801319d7d0c4cea82f43c3ab1ee..4c990e5e54fa730c755206a9c5a6b4c597e8b2a3 100644
(file)
--- a/
src/stdio/vfprintf.c
+++ b/
src/stdio/vfprintf.c
@@
-570,11
+570,11
@@
static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
case 'u':
a = fmt_u(arg.i, z);
}
+ if (p>=0) fl &= ~ZERO_PAD;
if (!arg.i && !p) {
a=z;
break;
}
- if (p>=0) fl &= ~ZERO_PAD;
p = MAX(p, z-a + !arg.i);
break;
case 'c':