]> granicus.if.org Git - neomutt/commit
Fix memcpy buf=NULL/len=0 issue in replace_part(). (closes #3790)
authorKevin McCarthy <kevin@8t8.us>
Thu, 19 Nov 2015 00:14:39 +0000 (16:14 -0800)
committerKevin McCarthy <kevin@8t8.us>
Thu, 19 Nov 2015 00:14:39 +0000 (16:14 -0800)
commit17846f2a37be2f5762de9f3fce6fd3431bbb3ea8
tree0e18b57bffdcc81586fd821885d7c33472c18d89
parentf8df85384202e01f227507b3ef70ec32d5824d63
Fix memcpy buf=NULL/len=0 issue in replace_part(). (closes #3790)

Calling memcpy with src or dest=NULL is technically illegal, even if
len=0.  Recent compilers seem to now be generating warnings/errors with
this.

replace_part() is currently the only place we are getting bug reports,
so for now just fix the problem in this one place.
enter.c