Update cardump.c

Credit rawtty source