]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r305812:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 9 Oct 2016 19:59:20 +0000 (19:59 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 9 Oct 2016 19:59:20 +0000 (19:59 +0000)
commitf9e4c84d1e69755c532e43d7d328030192b3ef75
tree55e370c9908f0b0069bb1f33a030d66cc7003564
parent29a0201f95e6d5b0121bc33b477de72efb27762b
MFC r305812:

fifolog(1): invert order of calloc(3) arguments.

The second argument 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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@306911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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