mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-21 22:31:19 +00:00
ignore upper case in pref
This commit is contained in:
parent
a1ef6be18a
commit
5163e17f14
@ -72,8 +72,14 @@ int prepare_host_domain_suffixes(char * buf) {
|
||||
if (buf) buf[pos] = '.';
|
||||
pos++;
|
||||
}
|
||||
if (buf) strcpy(buf + pos, str);
|
||||
pos += strlen(str);
|
||||
if (buf) {
|
||||
const char * str_pos = str;
|
||||
while (*str_pos != '\0') {
|
||||
buf[pos] = tolower(*str_pos);
|
||||
++pos;
|
||||
++str_pos;
|
||||
}
|
||||
};
|
||||
// domain to be checked will be FQDN so suffix must have a trailing dot
|
||||
if (str[strlen(str) - 1] != '.') {
|
||||
if (buf) buf[pos] = '.';
|
||||
|
Loading…
Reference in New Issue
Block a user