I am try to read a line from a file, separate the chars, and then read them to a malloc\'ed int array. I seem to be getting a segmentation fault when I use atoi to cast the char