Page MenuHomeFreeBSD

Invert calloc(3) argument order.
ClosedPublic

Authored by araujo on Aug 16 2016, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 9:24 PM
Unknown Object (File)
Fri, Mar 22, 9:24 PM
Unknown Object (File)
Fri, Mar 22, 9:24 PM
Unknown Object (File)
Mar 8 2024, 6:17 AM
Unknown Object (File)
Jan 4 2024, 4:15 PM
Unknown Object (File)
Jan 4 2024, 4:15 PM
Unknown Object (File)
Jan 4 2024, 4:15 PM
Unknown Object (File)
Jan 4 2024, 5:04 AM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
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.