I am pretty sure there are no files with faulty content, but I'll check the malloc/free calls and my array indexing etc again...