summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cpio
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-08 03:20:25 +0000
committerache <ache@FreeBSD.org>1995-08-08 03:20:25 +0000
commit9610e91949e55db7f40cc02a2f2aff4eeedc265c (patch)
tree246f644edd1c5c96d634f0c080ad7e1e87ec2bcd /gnu/usr.bin/cpio
parentf8cf8863f08a6a1cbab0fc15973a57959c1c359a (diff)
downloadFreeBSD-src-9610e91949e55db7f40cc02a2f2aff4eeedc265c.zip
FreeBSD-src-9610e91949e55db7f40cc02a2f2aff4eeedc265c.tar.gz
Replace ctime by strftime %c to use national representation
Diffstat (limited to 'gnu/usr.bin/cpio')
-rw-r--r--gnu/usr.bin/cpio/copyin.c2
1 files changed, 1 insertions, 1 deletions
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)
{
OpenPOWER on IntegriCloud