diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-09-30 18:50:27 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-09-30 19:01:59 -0700 |
commit | a6bccbe1d1b731e69b2b609278ef0811d547a6e7 (patch) | |
tree | b949e1bddce29d8dfb43da6d12f06b57e6fae54e /muttlib.c | |
parent | fb1686b66f028e0c844b3bb828c2882a3b8c0673 (diff) |
Memcpy header cache fetch values to ensure alignment.
While testing the hcache buffer pool changes, I noticed a misaligned
pointer warning when using LMDB.
The other header cache backends must ensure alignment of the pointer
they return, but LMDB apparently does not.
Instead of directly assigning and dereferencing the pointer fetched,
use memcpy to the appropriate type, just as the header cache restore
operation does.
Diffstat (limited to 'muttlib.c')
0 files changed, 0 insertions, 0 deletions