From 4356cfd7ad089329066cc2ebaaf9e1e982762537 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 25 Jul 1995 18:36:31 +0000 Subject: * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS. * sysdeps/unix/sysv/ftime.S: New file. * locale/locfile-parse.c (categories_write): Cast "" to char *. * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed. * time/strftime.c: Use year modulo 100 for %y. * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS. * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead of one, to work around bug in sunos4.1.2 sed. --- time/strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'time/strftime.c') diff --git a/time/strftime.c b/time/strftime.c index 625508c72e..c47fc07548 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -278,7 +278,7 @@ DEFUN(strftime, (s, maxsize, format, tp), break; case 'y': - fmt(2, (p, "%.2d", tp->tm_year)); + fmt(2, (p, "%.2d", tp->tm_year % 100)); break; case 'Z': -- cgit 1.4.1