Fix fgets warnings

This fixes warnings observed in #12 

I've fixed the comment.