aboutsummaryrefslogtreecommitdiff
path: root/blaze822.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-01 00:04:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-01 00:04:35 +0200
commit2aaa3cecd8a21c975c5bea886c678775627e90e7 (patch)
treec11aa2856651a3cbb6dc5dba32dd0eafda691bf8 /blaze822.c
parent0f9d98a4f4ef328ce31915fd56092b4f3cc185a9 (diff)
downloadmblaze-2aaa3cecd8a21c975c5bea886c678775627e90e7.tar.gz
blaze822: blaze822_chdr: downcase header
Diffstat (limited to 'blaze822.c')
-rw-r--r--blaze822.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/blaze822.c b/blaze822.c
index 3bdcbd9..84d56b4 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -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);
}