blaze822: blaze822_chdr: downcase header

pull/2/head
Christian Neukirchen 8 years ago
parent 0f9d98a4f4
commit 2aaa3cecd8

@ -436,7 +436,11 @@ char *
blaze822_chdr(struct message *mesg, const char *chdr)
{
char hdr[256];
char *c;
size_t l = snprintf(hdr, sizeof hdr, "%c%s:", 0, chdr);
for (c = hdr+1; *c; c++)
*c = lc(*c);
return blaze822_hdr_(mesg, hdr, l);
}

@ -683,7 +683,7 @@ show(char *file)
*n = 0;
v = blaze822_chdr(msg, h);
if (v) {
if (strcmp("date", h) == 0)
if (strcasecmp("date", h) == 0)
print_date_header(v);
else
print_decode_header(h, v);

Loading…
Cancel
Save