HomeFreeBSD

Fix top(1) long options handling

Description

Fix top(1) long options handling

getopt_long(3) requires the long options be terminated by a NULL block.
Without the terminator, an invalid long option results in a segmentation
fault.

Reported by: Brandon Bergren
MFC after: 1 week

Details

Provenance
jhibbitsAuthored on
Parents
rS343164: Clarify error messages a bit.
Branches
Unknown
Tags
Unknown