Rewrite -c and -b processing to shrink code and eliminate buffer overrun.