Update stack.c

Added cast for the calloc call.