HomeFreeBSD

localedef(1): make better use of calloc(3) arguments.

Description

localedef(1): make better use of calloc(3) arguments.

The first argument of calloc(3) should be an ordinal type, and the
second a size: split a multiplication to make better use of calloc(3)
and detect overflows.

Do some other re-ordering and style fixes while here.

MFC after: 3 weeks

Details

Provenance
pfgAuthored on
Parents
rS305812: fifolog(1): invert order of calloc(3) arguments.
Branches
Unknown
Tags
Unknown