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:
Joerg Wunsch 1995-07-22 22:16:54 +00:00
parent f2fdb2d731
commit fdb7c7dc11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9642

View File

@ -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);
}