Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx for GvG bugfix.

svn path=/trunk/; revision=20326
This commit is contained in:
Magnus Olsen 2005-12-25 02:55:18 +00:00
parent 4e2b520755
commit 344a183c14

View file

@ -367,13 +367,20 @@ static int numberf(FILE * f, double __n, char exp_sign, int size, int precision
} }
tmp = buf; tmp = buf;
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) { if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
j = 0; j = 0;
while ( j < i && ( *tmp == '0' || *tmp == '.' )) { while ( j < i && *tmp == L'0' ) {
tmp++;
i--;
}
if ( j < i && *tmp == L'.' ) {
tmp++; tmp++;
i--; i--;
} }
} }
// else // else
// while (i < precision--) // while (i < precision--)
// putc('0', f); // putc('0', f);