diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-12 15:00:35 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-12 15:00:35 +0200 |
commit | a59445e61419af46698380a210019f457e1ef5a6 (patch) | |
tree | c22ac1b95efb7ff266d6f5c5a8fe80fa539d9748 /blaze822.c | |
parent | cd510df51d33096fbaf83b51b1aac5fb2e3cabb6 (diff) | |
download | mblaze-a59445e61419af46698380a210019f457e1ef5a6.tar.gz mblaze-a59445e61419af46698380a210019f457e1ef5a6.tar.xz mblaze-a59445e61419af46698380a210019f457e1ef5a6.zip |
blaze822: avoid tolower
Diffstat (limited to 'blaze822.c')
-rw-r--r-- | blaze822.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c index 3df50a8..8a9d00c 100644 --- a/blaze822.c +++ b/blaze822.c @@ -16,6 +16,9 @@ // WSP = SP / HTAB #define iswsp(c) (((c) == ' ' || (c) == '\t')) +// ASCII lowercase without alpha check (wrong for "@[\]^_") +#define lc(c) ((c) | 0x20) + #define bufsiz 4096 struct message { @@ -310,7 +313,7 @@ blaze822(char *file) if (s-2 > buf && *(s-2) == '\n') // ex-crlf *(s-2) = 0; while (s < end && *s != ':') { - *s = tolower(*s); + *s = lc(*s); s++; } } |