Skip to content
Snippets Groups Projects
Commit d3bfafef authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Avoid direct to_lower() invocations; replaced by i_tolower().

parent 5b654ed2
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ static const char *_regexp_error(regex_t *regexp, int errorcode)
errsize = regerror(errorcode, regexp, errbuf, errsize);
/* We don't want the error to start with a capital letter */
errbuf[0] = tolower(errbuf[0]);
errbuf[0] = i_tolower(errbuf[0]);
buffer_append_space_unsafe(error_buf, errsize);
......
......@@ -512,7 +512,7 @@ static bool cmp_i_ascii_casemap_char_match
const char *val_begin = *val;
const char *key_begin = *key;
while ( tolower(**val) == tolower(**key) &&
while ( i_tolower(**val) == i_tolower(**key) &&
*val < val_end && *key < key_end ) {
(*val)++;
(*key)++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.