]> granicus.if.org Git - curl/commitdiff
printf: fix ".*f" handling
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Nov 2016 14:30:33 +0000 (15:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Nov 2016 14:30:33 +0000 (15:30 +0100)
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

index 2c88aa833b1b1fbb50d9b33aa56a59279595e41a..e1ad537f644899edd6f536ce314edcd8587923f6 100644 (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 */