Erik Auerswald wrote on Sun, 25 Nov 2012 17:31:38 +0100: >> Log: >> Don't use signed variable for file length. >> >> - long len; >> + size_t len; > Shouldn't this be off_t? I don't think it really matters, but off_t feels > more correct. According to my man pages, fread() takes a size_t argument. Maybe that's outdated? Ingo