Page MenuHomeFreeBSD

Invert calloc(3) argument order.

Authored by araujo on Aug 16 2016, 3:36 PM.



Seemed some calloc(3) calls has its arguments inverted,
by the manpage it should be used nitems and size, and not
the oposite.

As I don't really know the intention of the code, would
like a double check from the maintainer.

Diff Detail

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

araujo retitled this revision from to Invert calloc(3) argument order..
araujo updated this object.
araujo edited the test plan for this revision. (Show Details)
araujo added a reviewer: trasz.
trasz edited edge metadata.

Looks fine, thanks! Note that those files are duplicated in iscsid(8), so you might also want to fix it there.

This revision is now accepted and ready to land.Aug 17 2016, 10:17 AM
This revision was automatically updated to reflect the committed changes.