Merge pull request #2 from fishman/master

Get latest fishman changes
readLine: do not use strlen to determine line size

fgets may read a buffer that contains NUL characters.  Caught by
valgrind: when the first byte is NUL, invalid read occurred.
Merge pull request #122 from dtikhonov/master

Fixed a bug in readLine