diff options
author | Miles Bader <miles@gnu.org> | 1996-07-27 00:58:42 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-27 00:58:42 +0000 |
commit | 15ddb9f9c64f4856c947a89a9f09d51fafc694f6 (patch) | |
tree | 680b711274e443b1acbf56a5642420f9069c1cb2 | |
parent | 8b47dea06d7b0bc2935287c1d63a9c808e7b2ba6 (diff) |
(fmt_past_time): Always use WIDTH+1 as strftime's limit.
-rw-r--r-- | libshouldbeinlibc/timefmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c index 21c5c79c..da4ccde0 100644 --- a/libshouldbeinlibc/timefmt.c +++ b/libshouldbeinlibc/timefmt.c @@ -339,7 +339,7 @@ fmt_past_time (struct timeval *tv, struct timeval *now, end = stpcpy (end, *sep); end = stpcpy (end, *fmt); - used = strftime (buf, width, whole_fmt, &tm); + used = strftime (buf, width + 1, whole_fmt, &tm); } if (! used) |