diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2016-05-16 15:42:59 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2016-05-16 15:42:59 +0000 |
| commit | 41cee4e41b865e9ffc9f8468ec922565615cfe58 (patch) | |
| tree | 6e78f05edbffcff5126f7286b14b8dd6906291fd /lib/libbsdstat | |
| parent | 9c3e2052969f7ff1edee8bff1aa02e3a3c6f7d24 (diff) | |
Notes
Diffstat (limited to 'lib/libbsdstat')
| -rw-r--r-- | lib/libbsdstat/bsdstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libbsdstat/bsdstat.c b/lib/libbsdstat/bsdstat.c index 96fba009ba5e3..564020eee56a0 100644 --- a/lib/libbsdstat/bsdstat.c +++ b/lib/libbsdstat/bsdstat.c @@ -53,7 +53,7 @@ bsdstat_setfmt(struct bsdstat *sf, const char *fmt0) "skipped\n", sf->name, tok); continue; } - if (j+3 > (int) sizeof(sf->fmts)) { + if (j+4 > (int) sizeof(sf->fmts)) { fprintf(stderr, "%s: not enough room for all stats; " "stopped at %s\n", sf->name, tok); break; |
