aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-05-10 10:52:39 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-05-10 10:52:39 +0200
commit2b517f97c0f67df03cdd21a8f78aa3a13b095e8d (patch)
tree31f4c82d8990e74905033fae58adc9807d190f50
parentc4008e43d9d44e950fa16ac45c279303e3e69a96 (diff)
downloadmblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.tar.gz
mblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.tar.xz
mblaze-2b517f97c0f67df03cdd21a8f78aa3a13b095e8d.zip
msed: match header names case insensitively
Found by skarnet.
-rw-r--r--msed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msed.c b/msed.c
index 7bb0b82..c545278 100644
--- a/msed.c
+++ b/msed.c
@@ -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);