common.c: fix calloc arguments order