X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=color.c;h=69e444ea3ac291d53bdfd70bb672f88f8dda8b83;hp=87c7ded5e20e34f198b98ffc6050811f41ddb987;hb=57c0b219e1b899b31397f355dd7b84e8c03a5094;hpb=74a2265af51ce89bca845adc1d68f273c9933c13 diff --git a/color.c b/color.c index 87c7ded..69e444e 100644 --- a/color.c +++ b/color.c @@ -297,13 +297,13 @@ parse_color_name (const char *s, int *col, int *attr, int brite, BUFFER * err) { char *eptr; - if (mutt_strncasecmp (s, "bright", 6) == 0) { + if (safe_strncasecmp (s, "bright", 6) == 0) { *attr |= brite; s += 6; } /* allow aliases for xterm color resources */ - if (mutt_strncasecmp (s, "color", 5) == 0) { + if (safe_strncasecmp (s, "color", 5) == 0) { s += 5; *col = strtol (s, &eptr, 10); if (!*s || *eptr || *col < 0 || @@ -363,7 +363,7 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data, return (-1); } - if (mutt_strncmp (buf->data, "index", 5) != 0) { + if (safe_strncmp (buf->data, "index", 5) != 0) { snprintf (err->data, err->dsize, _("%s: command valid only for index object"), parse_uncolor ? "uncolor" : "unmono"); @@ -401,7 +401,7 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data, do { mutt_extract_token (buf, s, 0); - if (!mutt_strcmp ("*", buf->data)) { + if (!safe_strcmp ("*", buf->data)) { for (tmp = ColorIndexList; tmp;) { if (!do_cache) do_cache = 1; @@ -414,7 +414,7 @@ _mutt_parse_uncolor (BUFFER * buf, BUFFER * s, unsigned long data, else { for (last = NULL, tmp = ColorIndexList; tmp; last = tmp, tmp = tmp->next) { - if (!mutt_strcmp (buf->data, tmp->pattern)) { + if (!safe_strcmp (buf->data, tmp->pattern)) { if (!do_cache) do_cache = 1; dprint (1, @@ -458,11 +458,11 @@ add_pattern (COLOR_LINE ** top, const char *s, int sensitive, while (tmp) { if (sensitive) { - if (mutt_strcmp (s, tmp->pattern) == 0) + if (safe_strcmp (s, tmp->pattern) == 0) break; } else { - if (mutt_strcasecmp (s, tmp->pattern) == 0) + if (safe_strcasecmp (s, tmp->pattern) == 0) break; } tmp = tmp->next; @@ -538,7 +538,7 @@ parse_object (BUFFER * buf, BUFFER * s, int *o, int *ql, BUFFER * err) } mutt_extract_token (buf, s, 0); - if (!mutt_strncmp (buf->data, "quoted", 6)) { + if (!safe_strncmp (buf->data, "quoted", 6)) { if (buf->data[6]) { *ql = strtol (buf->data + 6, &eptr, 10); if (*eptr || q_level < 0) {