summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6bed126..8aab7b5 100644
--- a/main.c
+++ b/main.c
@@ -94,7 +94,7 @@ int main(int argc, char **argv) {
len = 0;
*word = '\0';
} else if(iswalpha(*pos)) {
- word[len++] = *pos;
+ word[len++] = towlower(*pos);
} else {
len = 0;
*word = '\0';