Add the year to the 'wtmp begins...' line.
PR: 6421 Submitted by: phk
This commit is contained in:
parent
0db69331c5
commit
a0bf7cf6b6
@ -298,8 +298,8 @@ wtmp()
|
||||
}
|
||||
}
|
||||
tm = localtime(&buf[0].ut_time);
|
||||
(void) strftime(ct, sizeof(ct), "%c", tm);
|
||||
printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
|
||||
(void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm);
|
||||
printf(ct);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user