Commits

Ward Fisher committed ff062bb588a
Fixed a windows-specific issue in nc_open. When attempting to read 4 bytes from a 3 byte file, Windows would fail with an error 22, "Invalid Operation". This would happen when trying to read the 4-byte magic number from a very small file. This problem was uncovered by nc_test/tst_misc.c. When fread returns 0 and errno is 22, NC_ENOTNC is returned.