]> diplodocus.org Git - nmh/commit
m_getfld: Shorten fdelimlen by one; it was too long.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 11 Nov 2016 23:23:11 +0000 (23:23 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 11 Nov 2016 23:23:11 +0000 (23:23 +0000)
commit36a12f6a1a5a57799e48b23fd5ae47fe2351be68
treeaca3273436ac52c79b2869afc67e355b20d9c674
parentd0ae0c245cec54166b98cde12f2c42f0c1b6da3a
m_getfld: Shorten fdelimlen by one;  it was too long.

The fdelimlen bytes starting at fdelim included a NUL at the end, e.g. 7
for "\nFrom \0".  Other code seems not to expect this and has
conditional bits to work around it, perhaps without understanding why.
All the tests still pass, including with valgrind.
sbr/m_getfld.c