Skip to content
Permalink
Browse files

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
  • Loading branch information...
bagder committed Nov 8, 2016
1 parent c2bc47d commit 5dd1b65f79bc6dc75b752c53f3fa853b2a3b6d69
Showing with 0 additions and 1 deletion.
  1. +0 −1 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 */

0 comments on commit 5dd1b65

Please sign in to comment.
You can’t perform that action at this time.