Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
fcc0131f63
commit
cadc2836d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298443
@ -1025,7 +1025,7 @@ format1(const struct stat *st,
|
||||
*
|
||||
* Nanoseconds: long.
|
||||
*/
|
||||
(void)snprintf(tmp, sizeof(tmp), "%dld", prec > 9 ? 9 : prec);
|
||||
(void)snprintf(tmp, sizeof(tmp), "%dld", MAX(9, prec));
|
||||
(void)strcat(lfmt, tmp);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user