diff options
| author | jtc <jtc@NetBSD.org> | 1994-10-20 03:56:56 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1994-10-20 03:56:56 +0000 |
| commit | 14c8a82a15ee14a03c60d920fd02abbd5ea47304 (patch) | |
| tree | 82459064541e3b0137e102718622d57099c0e981 /lib/libc/stdio/vfprintf.c | |
| parent | b2d8a64ebd3df2984ec1637397ab8bc275f0a091 (diff) | |
Fix zero padding when using the # format modifier.
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index e2e3b632d30..e7fdbe3435d 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -36,7 +36,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)vfprintf.c 5.50 (Berkeley) 12/16/92";*/ -static char *rcsid = "$Id: vfprintf.c,v 1.12 1994/09/30 02:39:13 jtc Exp $"; +static char *rcsid = "$Id: vfprintf.c,v 1.13 1994/10/20 03:56:56 jtc Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -626,7 +626,7 @@ number: if ((dprec = prec) >= 0) PAD(width - realsz, zeroes); /* leading zeroes from decimal precision */ - PAD(dprec - fieldsz, zeroes); + PAD(dprec - size, zeroes); /* the string or number proper */ #ifdef FLOATING_POINT |
