]> diplodocus.org Git - nmh/commit
Replace strchr() condition with TrimSuffixC(), fixing assumptions.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 09:09:47 +0000 (10:09 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 09:12:01 +0000 (10:12 +0100)
commitbd0b347221292e62d6a3ac630922f097c736b055
treee6394bc2027d2730d0904d62e811e29e5079b45f
parent6651e2804863b4d1444ce5b0c0bb959416c4e0ad
Replace strchr() condition with TrimSuffixC(), fixing assumptions.
A couple of the existing strchr()-based trims assumed fgets() returned a
string containing `\n' if it didn't return NULL.
uip/whatnowsbr.c