From 7c57806c6f3e29db10d3a224c765afa71d1cb8aa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 31 Jan 2020 16:11:38 +0100 Subject: [PATCH] rcfile: require "bright", "start=", and "end=" to be in lowercase too --- src/rcfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 93ae5e57..8fc105a2 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -962,7 +962,7 @@ void parse_includes(char *ptr) * and set bright to TRUE if that color is bright. */ short color_to_short(const char *colorname, bool *bright) { - if (strncasecmp(colorname, "bright", 6) == 0) { + if (strncmp(colorname, "bright", 6) == 0) { *bright = TRUE; colorname += 6; } else @@ -1059,7 +1059,7 @@ void parse_colors(char *ptr, int rex_flags) bool expectend = FALSE; /* Whether to expect an end= line. */ - if (strncasecmp(ptr, "start=", 6) == 0) { + if (strncmp(ptr, "start=", 6) == 0) { ptr += 6; expectend = TRUE; } @@ -1105,7 +1105,7 @@ void parse_colors(char *ptr, int rex_flags) if (!expectend) continue; - if (ptr == NULL || strncasecmp(ptr, "end=", 4) != 0) { + if (ptr == NULL || strncmp(ptr, "end=", 4) != 0) { jot_error(N_("\"start=\" requires a corresponding \"end=\"")); return; }