diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2ba3d3b59..7729b2c35 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2010-02-15 Corinna Vinschen + + * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here + as well. + 2010-02-15 Corinna Vinschen * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c index 9cf9c3ec7..d9b9d5679 100644 --- a/newlib/libc/stdio/vfwprintf.c +++ b/newlib/libc/stdio/vfwprintf.c @@ -1382,7 +1382,7 @@ number: if ((dprec = prec) >= 0) cp = convbuf + ndig; } #endif - if (prec || flags & ALT) + if (expt < ndig || flags & ALT) PRINT (&decimal_point, 1); PRINTANDPAD (cp, convbuf + ndig, ndig - expt, zeroes);