Better debugging.
Left a flag on.
malloc / calloc doesn't need to be cast in C.