diff options
Diffstat (limited to 'gnu/usr.bin/cpio')
-rw-r--r-- | gnu/usr.bin/cpio/copyin.c | 2 |
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) { |