aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/stat
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/stat')
-rw-r--r--usr.bin/stat/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index 77f061190afe..ddbb9ab0a26f 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -1025,7 +1025,7 @@ format1(const struct stat *st,
*
* Nanoseconds: long.
*/
- (void)snprintf(tmp, sizeof(tmp), "%dld", MAX(9, prec));
+ (void)snprintf(tmp, sizeof(tmp), "%dld", MIN(prec, 9));
(void)strcat(lfmt, tmp);
/*