aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-05-10 17:58:29 +0000
committerJeff Johnston <jjohnstn@redhat.com>2000-05-10 17:58:29 +0000
commitf35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0 (patch)
tree9c94c4e4a782281396b1b06f0a67650364e57f66 /newlib
parentadfefc0b0672a09848a9de7f0d53d748245a87d0 (diff)
downloadnewlib-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.zip
newlib-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.tar.gz
newlib-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.tar.bz2
Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
* 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.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/time/asctime_r.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9e7a64f..fb5a9df 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
+
+ * 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 <corinna@vinschen.de>
* 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 ff70ea4..2c02667 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,