Fix pkwrite test that were failing on mingw32

Apparently fread() writes some junk after the contents of the file. Don't look
at it.
1 file changed