string reply(upper);
char c;
for(unsigned int i = 0; i < reply.length(); i++) {
- c = dns_tolower(reply[i]);
- if( c != reply[i])
+ c = dns_tolower(upper[i]);
+ if( c != upper[i])
reply[i] = c;
}
return reply;
unsigned int i, limit= ( unsigned int ) reply.length();
char c;
for(i = 0; i < limit ; i++) {
- c = dns_tolower(reply[i]);
- if(c != reply[i])
+ c = dns_tolower(upper[i]);
+ if(c != upper[i])
reply[i] = c;
}
- if(reply[i-1]=='.')
+ if(upper[i-1]=='.')
reply.resize(i-1);
}