]> diplodocus.org Git - nmh/commit
Don't call strlen() twice; save result.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 00:36:35 +0000 (01:36 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 00:36:35 +0000 (01:36 +0100)
commit98e0149bd139b5eb98a89b418b08ec5e6861b7cb
treedb7d674aa3189188f834f20b130e3749a01cbdee
parent1313dfaa432e794cda1db60b32664164ef6245dd
Don't call strlen() twice;  save result.
The second instance was attempting to write strlen(mmdlm2) bytes
and checking the return value against strlen(mmdlm1).  I assumed
that was an error without digging.
uip/inc.c