mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 17:00:49 +01:00
this avaids the "lineoverflow" which you'll always get at 80 column displays
at bootup Reviewed by: Submitted by: graichen@omega.physik.fu-berlin.de (Thomas Graichen) Obtained from:
This commit is contained in:
parent
f2fdb2d731
commit
fdb7c7dc11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9642
@ -196,7 +196,7 @@ interval(tval, updown)
|
||||
static char resbuf[32];
|
||||
int days, hours, minutes;
|
||||
|
||||
if (tval < 0 || tval > DAYSPERNYEAR * SECSPERDAY) {
|
||||
if (tval < 0) {
|
||||
(void)snprintf(resbuf, sizeof(resbuf), " %s ??:??", updown);
|
||||
return (resbuf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user