From 38d09c90dec3f80091687f1b6ac253e2ffc1a0b9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 15 Feb 2010 16:29:15 +0000 Subject: * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here as well. --- newlib/ChangeLog | 5 +++++ newlib/libc/stdio/vfwprintf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3