HomeFreeBSD

uniq(1): use strtonum to parse options

Description

uniq(1): use strtonum to parse options

Previously strtol was used and the result was directly cast to an int
without checking for an overflow. Use strtonum instead since it is
safer and tells us what went wrong.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/643

Details

Provenance
tamelingdaniel_gmail.comAuthored on Feb 25 2023, 5:25 PM
impCommitted on Feb 25 2023, 5:25 PM
Parents
rG4d59545d0cac: stand: fix build userboot without zfs
Branches
Unknown
Tags
Unknown