diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-08 03:20:25 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-08 03:20:25 +0000 |
| commit | 668eb4585fdc164068938c04db9332e943073f10 (patch) | |
| tree | 246f644edd1c5c96d634f0c080ad7e1e87ec2bcd | |
| parent | 6de8ce1a7428297c837bfb4492ac7db692d2a4df (diff) | |
Notes
| -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 8094a7b5694a..7c5d349db042 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) { |
