msed: match header names case insensitively

Found by skarnet.
pull/209/head
Leah Neukirchen 3 years ago
parent c4008e43d9
commit 2b517f97c0

@ -138,7 +138,7 @@ sed(char *file)
if (*s == ':')
*s = '|';
int rv;
if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED)) != 0) {
if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED | REG_ICASE)) != 0) {
char buf[100];
regerror(rv, &headerrx, buf, sizeof buf);
fprintf(stderr, "msed: %s\n", buf);

Loading…
Cancel
Save