Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx for GvG...
authorMagnus Olsen <magnus@greatlord.com>
Sun, 25 Dec 2005 02:55:18 +0000 (02:55 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 25 Dec 2005 02:55:18 +0000 (02:55 +0000)
svn path=/trunk/; revision=20326

reactos/lib/crt/stdio/vfprintf.c

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