Changed a malloc call to remove the call to sizeof(char) when not necessary.