Style updates.
Use calloc() instead of malloc().