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
This commit is contained in:
Daniel Stenberg 2016-11-08 15:30:33 +01:00
parent c2bc47ddb8
commit 5dd1b65f79
1 changed files with 0 additions and 1 deletions

View File

@ -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 */