msg-sexp: fix adding contacts

std::array doesn't check its size...
This commit is contained in:
Dirk-Jan C. Binnema 2022-03-28 23:04:12 +03:00
parent ab3dd3de58
commit 297930261a
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ static void
add_contacts(Sexp::List& list, MuMsg* msg)
{
using ContactPair = std::pair<Field::Id, std::string_view>;
constexpr std::array<ContactPair, 5> contact_types = {{
constexpr std::array<ContactPair, 4> contact_types = {{
{ Field::Id::From, ":from" },
{ Field::Id::To, ":to" },
{ Field::Id::Cc, ":cc" },