From: Steve Bennett Date: Wed, 24 Jul 2013 04:50:51 +0000 (+1000) Subject: Avoid use of strcasecmp() X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d1ba3166e2c908a0f73e7786e68a3545355ec078;p=linenoise.git Avoid use of strcasecmp() It isn't really necessary and isn't always available. Signed-off-by: Steve Bennett --- diff --git a/linenoise.c b/linenoise.c index 230711b..7254928 100644 --- a/linenoise.c +++ b/linenoise.c @@ -209,7 +209,7 @@ static int isUnsupportedTerm(void) { if (term) { int j; for (j = 0; unsupported_term[j]; j++) { - if (strcasecmp(term, unsupported_term[j]) == 0) { + if (strcmp(term, unsupported_term[j]) == 0) { return 1; } }