diff options
Diffstat (limited to 'usr.sbin/fifolog/lib/fifolog_create.c')
-rw-r--r-- | usr.sbin/fifolog/lib/fifolog_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fifolog/lib/fifolog_create.c b/usr.sbin/fifolog/lib/fifolog_create.c index 68f8cef..32f6886 100644 --- a/usr.sbin/fifolog/lib/fifolog_create.c +++ b/usr.sbin/fifolog/lib/fifolog_create.c @@ -91,7 +91,7 @@ fifolog_create(const char *fn, off_t size, unsigned recsize) if (size == 0 && S_ISREG(st.st_mode)) size = st.st_size; - if (size == 0) + if (size == 0) size = recsize * (off_t)(24*60*60); if (S_ISREG(st.st_mode) && ftruncate(fd, size) < 0) |