This affects the use of dwipe as a stand-alone command line program.
< char dwipe_options_short  = "Chmpr:";
> char dwipe_options_short  = "hm:pr:";
(1) Lack of ':' after the 'm' prevents the parsing of the argument (method_name)
e.g. --method dod is ok and -m dod seg faults
as a 0 address passed as optarg to strcmp( optarg,...) causing a seg fault.
(2) There is no short argument processed for the character 'C', hence it is not required.
Log in to post a comment.