diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-08 15:30:33 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-08 15:30:33 +0100 |
commit | 5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69 (patch) | |
tree | b70133af901f184f3b655fb4a3683f3f3773deb7 /lib/mprintf.c | |
parent | c2bc47ddb88057a5cc39c51cd1a11c6e040eefbc (diff) | |
download | curl-5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69.tar.gz |
printf: fix ".*f" handling
It would always use precision 1 instead of reading it from the argument
list as intended.
Reported-by: Ray Satiro
Bug: #1113
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 2c88aa833..e1ad537f6 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -303,7 +303,6 @@ static int dprintf_Pass1(const char *format, va_stack_t *vto, char **endpos, flags |= FLAGS_ALT; break; case '.': - flags |= FLAGS_PREC; if('*' == *fmt) { /* The precision is picked from a specified parameter */ |