[PATCH 1/2] command: Allocate history buffer using calloc()