mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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
This commit is contained in:
parent
c2bc47ddb8
commit
5dd1b65f79
@ -303,7 +303,6 @@ static int dprintf_Pass1(const char *format, va_stack_t *vto, char **endpos,
|
|||||||
flags |= FLAGS_ALT;
|
flags |= FLAGS_ALT;
|
||||||
break;
|
break;
|
||||||
case '.':
|
case '.':
|
||||||
flags |= FLAGS_PREC;
|
|
||||||
if('*' == *fmt) {
|
if('*' == *fmt) {
|
||||||
/* The precision is picked from a specified parameter */
|
/* The precision is picked from a specified parameter */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user