Thanks to Fabian Groffen for pointing out the discrepancy.
mutt_extract_token() null-terminates the token,, so actually there is
no need to use "strncmp" for the comparison in this case.
However, since the token is being checked against Fields there is no
potential harm of a prefix match, so we should fix the number to be
consistent with the other token comparisons.
}
else if (mutt_strncmp (buf->data, "body", 4) == 0)
list = &ColorBodyList;
- else if (mutt_strncmp (buf->data, "header", 7) == 0)
+ else if (mutt_strncmp (buf->data, "header", 6) == 0)
list = &ColorHdrList;
else
{