When I call editorLineInsert and I reach fgets, my list pointer changes and points to somewhere completely random. I just dont get it. After fgets magically changes the list pointer, I get a segmentation fault, because I check to see if the list is empty. Since the list pointer is pointing somewhere random, I get a seg fault. Funny thing is, ...