When reading from a file, fgets reads up to the \n line terminator (which it includes).
Under Windows, a line read from a text file ends in \r\n.
Under Unix, a line read from a text file ends in just \n.
So under Windows, you'd expect the string read by fgets to be 1 byte longer.