Update main.c

Changed the 0 to the null character when we set the memory