zach fixed it...by telling me to use calloc (guess malloc would work as well)