Skip to content

Commit

Permalink
msed: match header names case insensitively
Browse files Browse the repository at this point in the history
Found by skarnet.
  • Loading branch information
leahneukirchen committed May 10, 2021
1 parent c4008e4 commit 2b517f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b517f9

Please sign in to comment.