diff options
author | Miles Bader <miles@gnu.org> | 1996-05-28 22:06:06 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-28 22:06:06 +0000 |
commit | 61893578d2543d5c37290d8fb60bd0d0e42613da (patch) | |
tree | 08539abacef6631d96dffb537164307551dbe170 /libshouldbeinlibc | |
parent | b8a7f7aa9b350ebe558aed74d8fffc0277be81e0 (diff) |
(fmt_seconds): Don't print two decimal points.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/timefmt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c index add5001f..906b9ed1 100644 --- a/libshouldbeinlibc/timefmt.c +++ b/libshouldbeinlibc/timefmt.c @@ -235,7 +235,6 @@ fmt_seconds (struct timeval *tv, int leading_zeros, int frac_places, int frac = tv->tv_usec, i; for (i = 6; i > frac_places; i--) frac /= 10; - *p++ = '.'; return (p - buf) + sprintf (p, ".%0*d", frac_places, frac); } else |