From be366ed50e4381f253b7dda5f857ed5881373bb3 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Mon, 10 Oct 2016 20:25:13 +0300 Subject: [PATCH] Apparently ignoring letter case is a bug --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fce8a0e..1a0a327 100644 --- a/src/main.c +++ b/src/main.c @@ -37,7 +37,7 @@ int main (void) fscanf(stdin, "%c", &month_first_leter); fprintf(stdout, "%c\n", month_first_leter); for (int i = 0; i < 6; i++) { - if (!strncmp(strupr(&month_first_leter), ENG_MONTH[i], 1)) { + if (!strncmp(&month_first_leter, ENG_MONTH[i], 1)) { fprintf(stdout, "%s\n", ENG_MONTH[i]); } }