From 4b4fed9b8adea786487d85e913ebea42793615df Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 23 Apr 2018 14:17:03 +0200 Subject: mhdr: use strncasecmp to fix -M -h Received --- mhdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mhdr.c') diff --git a/mhdr.c b/mhdr.c index c31cee2..7836a84 100644 --- a/mhdr.c +++ b/mhdr.c @@ -138,7 +138,7 @@ headermany(struct message *msg) *n = 0; size_t l = strlen(h); - if (strncmp(hdr, h, l) == 0 && hdr[l] == ':') { + if (strncasecmp(hdr, h, l) == 0 && hdr[l] == ':') { hdr += l + 1; while (*hdr == ' ' || *hdr == '\t') hdr++; -- cgit 1.4.1