Save some library calls
Flip fread argument order to be more conservative

Manpages don’t say anything about buffer contents if the fread did only
partially succeed. Better safe than sorry.
Merge pull request #2 from horazont/save-libcalls

Save some library calls