about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--blaze822.c5
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++;
 				}
 			}