From: Daniel Stenberg Date: Tue, 8 Nov 2016 14:30:33 +0000 (+0100) Subject: printf: fix ".*f" handling X-Git-Tag: curl-7_52_0~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69;p=curl 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 --- 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 */