]> granicus.if.org Git - mutt/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)
commitd9dfd78e9e307f4ab5ac8f71d64114a0214f2db2
tree0e18b57bffdcc81586fd821885d7c33472c18d89
parent9c6e09888abbdebe756fdaf7b1d6c490a8801df8
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