fifolog(1): invert order of calloc(3) arguments.
authorpfg <pfg@FreeBSD.org>
Wed, 14 Sep 2016 16:34:52 +0000 (16:34 +0000)
committerpfg <pfg@FreeBSD.org>
Wed, 14 Sep 2016 16:34:52 +0000 (16:34 +0000)
commit96b13f0aaac6f19832f6eb069196b6a3cc85aa5b
treea93ad0557d95107f02e5f87d49bbf9eea6630ed1
parentde4b915bfb1cbce2d5b08660f2e440b7c469cee4
fifolog(1): invert order of calloc(3) arguments.

The second argment to calloc(3) should be the size, make it so.

While here be a little bit more cautious in fifolog_reader_open()
to protect in the unlikely event of an overflowed allocation.

MFC after: 3 weeks
usr.sbin/fifolog/lib/fifolog_create.c
usr.sbin/fifolog/lib/fifolog_reader.c
usr.sbin/fifolog/lib/fifolog_write_poll.c
usr.sbin/fifolog/lib/miniobj.h