Fix width for printing time
This commit is contained in:
parent
fcf8327355
commit
9575fb2f65
@ -82,9 +82,8 @@ pr_attime(started, now)
|
||||
(void)strcpy(fmt, use_ampm ? "%l:%M%p" : "%k:%M");
|
||||
}
|
||||
|
||||
(void)strftime(buf, sizeof(buf) - 1, fmt, &tp);
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
(void)printf("%s", buf);
|
||||
(void)strftime(buf, sizeof(buf), fmt, &tp);
|
||||
(void)printf("%-7.7s", buf);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user