diff options
author | tjr <tjr@FreeBSD.org> | 2003-03-14 08:50:43 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-03-14 08:50:43 +0000 |
commit | d91d5d0610cfd5e74e96861939674b893a71ef05 (patch) | |
tree | 385e1febc401aba33ac1a605e2148245057e98b4 /lib | |
parent | 86ea8af4d0593058fe88a7de1ed16cefb4615088 (diff) | |
download | FreeBSD-src-d91d5d0610cfd5e74e96861939674b893a71ef05.zip FreeBSD-src-d91d5d0610cfd5e74e96861939674b893a71ef05.tar.gz |
Merge vfprintf.c revision 1.52.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/vfwprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index a6198db..7ed7187 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -39,7 +39,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -__FBSDID("FreeBSD: src/lib/libc/stdio/vfprintf.c,v 1.51 2003/03/12 20:30:00 das Exp"); +__FBSDID("FreeBSD: src/lib/libc/stdio/vfprintf.c,v 1.52 2003/03/14 04:48:09 das Exp"); #endif __FBSDID("$FreeBSD$"); @@ -1507,7 +1507,7 @@ cvt(double value, int ndigits, int flags, char *sign, int *decpt, /* print trailing zeros */ bp = digits + ndigits; if (ch == 'f') { - if (*digits == '0' && value) + if ((*digits == '0' || *digits == '\0') && value) *decpt = -ndigits + 1; bp += *decpt; } |