From f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 10 May 2000 17:58:29 +0000 Subject: [PATCH] Wed May 10 13:52:24 2000 Egor Duda * libc/time/asctime_r.c (asctime_r): Change output format. Day of month is now padded with space, not zero. This now conforms to ANSI standard. --- newlib/ChangeLog | 6 ++++++ newlib/libc/time/asctime_r.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9e7a64f8b..fb5a9df0e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +Wed May 10 13:52:24 2000 Egor Duda + + * libc/time/asctime_r.c (asctime_r): Change output format. Day of + month is now padded with space, not zero. This now conforms to + ANSI standard. + Wed May 03 17:57:00 2000 Corinna Vinschen * libc/include/sys/errno.h: Add define for ENOSHARE ("No such diff --git a/newlib/libc/time/asctime_r.c b/newlib/libc/time/asctime_r.c index ff70ea415..2c02667e6 100644 --- a/newlib/libc/time/asctime_r.c +++ b/newlib/libc/time/asctime_r.c @@ -18,7 +18,7 @@ _DEFUN (asctime_r, (tim_p, result), "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; - sprintf (result, "%.3s %.3s %.2d %.2d:%.2d:%.2d %d\n", + sprintf (result, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", day_name[tim_p->tm_wday], mon_name[tim_p->tm_mon], tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min,