diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mprintf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index b3fc33922..bba1a6481 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -686,8 +686,11 @@ static int dprintf_formatf( width = p->width; /* pick up the specified precision */ - if(p->flags & FLAGS_PRECPARAM) + if(p->flags & FLAGS_PRECPARAM) { prec = vto[p->precision].data.num; + param_num++; /* since the precision is extraced from a parameter, we + must skip that to get to the next one properly */ + } else if(p->flags & FLAGS_PREC) prec = p->precision; else |