From 9610e91949e55db7f40cc02a2f2aff4eeedc265c Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 8 Aug 1995 03:20:25 +0000 Subject: Replace ctime by strftime %c to use national representation --- gnu/usr.bin/cpio/copyin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin/cpio') diff --git a/gnu/usr.bin/cpio/copyin.c b/gnu/usr.bin/cpio/copyin.c index 8094a7b..7c5d349 100644 --- a/gnu/usr.bin/cpio/copyin.c +++ b/gnu/usr.bin/cpio/copyin.c @@ -961,7 +961,7 @@ long_format (file_hdr, link_name) /* Get time values ready to print. */ when = file_hdr->c_mtime; - strcpy (tbuf, ctime (&when)); + strftime(tbuf, sizeof(tbuf), "%c", localtime(&when)); if (current_time - when > 6L * 30L * 24L * 60L * 60L || current_time - when < 0L) { -- cgit v1.1