diff options
| author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-22 03:43:06 +0000 |
|---|---|---|
| committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-22 03:43:06 +0000 |
| commit | cadc2836d850c946c9efd5ac92b2e24a3ab52779 (patch) | |
| tree | 01daff507f78f01b172d9c03e7f41dcf2f0a9486 /usr.bin/stat | |
| parent | fcc0131f63ba876c84ceecbe6d8076157aa63bf0 (diff) | |
Notes
Diffstat (limited to 'usr.bin/stat')
| -rw-r--r-- | usr.bin/stat/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index 120febe18d60e..77f061190afed 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", prec > 9 ? 9 : prec); + (void)snprintf(tmp, sizeof(tmp), "%dld", MAX(9, prec)); (void)strcat(lfmt, tmp); /* |
