diff options
Diffstat (limited to 'usr.bin/find/ls.c')
-rw-r--r-- | usr.bin/find/ls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index 929ef79..29c068d 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -82,10 +82,9 @@ printtime(ftime) time_t ftime; { int i; - char *longstring, *ctime(); - time_t time(); + char longstring[80]; - longstring = ctime((long *)&ftime); + strftime(longstring, sizeof(longstring), "%c", localtime(&ftime)); for (i = 4; i < 11; ++i) (void)putchar(longstring[i]); |