]> diplodocus.org Git - nmh/commit
Don't increment bytes_read if returning EOF.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 11:23:57 +0000 (12:23 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 11:23:57 +0000 (12:23 +0100)
commit02e28520c4b36386258cc74a2534970c177ec6c2
treedf004a62e808d59912737cfa5af709cfc1336c92
parent3028e444662122daf45e924d60874c0de619b478
Don't increment bytes_read if returning EOF.
Don't know if this was actually causing a problem, or if it was wrong,
but bytes_read was always being incremented even if the later test
showed readpos was to be left unincremented and EOF returned instead.
All tests still pass so any breakage must be subtle!
sbr/m_getfld.c