]> diplodocus.org Git - nmh/commit
uip/mhbuildsbr.c: Fix long-line truncation when BUFSIZ is 1024.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 17 May 2017 14:15:18 +0000 (15:15 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 17 May 2017 14:15:18 +0000 (15:15 +0100)
commitf278151752398b42da2ab1ac666ebbd3cae33583
treed399e6792ade3d212e53864c65c25ca0380eefad
parent60899a188e74f0f2ee293f6eb629e3b81b71ac9f
uip/mhbuildsbr.c: Fix long-line truncation when BUFSIZ is 1024.

a23477eb changed one char array from BUFSIZ to NMH_BUFSIZ elements, but
the long line read into it was passed to user_content() that
strncpy(3)'d it, silently truncating, to another char array, still
BUFSIZ long.  This show up on platforms where BUFSIZ is 1024 versus
NMH_BUFSIZ's minimum of 8192.
uip/mhbuildsbr.c