aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-08 15:30:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-08 15:30:33 +0100
commit5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69 (patch)
treeb70133af901f184f3b655fb4a3683f3f3773deb7 /lib
parentc2bc47ddb88057a5cc39c51cd1a11c6e040eefbc (diff)
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')
-rw-r--r--lib/mprintf.c1
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 */