From 5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 8 Nov 2016 15:30:33 +0100 Subject: 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 --- lib/mprintf.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/mprintf.c') 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 */ -- cgit v1.2.1