ret.reserve(label.size()+4);
for(parts_t::const_iterator i=parts.begin(); i!=parts.end(); ++i) {
if(!root.empty() && !strncasecmp(root.c_str(), label.c_str() + i->first, 1 + label.length() - i->first)) { // also match trailing 0, hence '1 +'
- const char rootptr[2]={0xc0,0x11};
- ret.append(rootptr, 2);
+ const unsigned char rootptr[2]={0xc0,0x11};
+ ret.append((const char *) rootptr, 2);
return ret;
}
ret.append(1, (char)(i->second - i->first));
d_rollbackmarker=d_content.size();
if(pdns_iequals(d_qname, d_recordqname)) { // don't do the whole label compression thing if we *know* we can get away with "see question"
- static char marker[2]={0xc0, 0x0c};
- d_content.insert(d_content.end(), &marker[0], &marker[2]);
+ static unsigned char marker[2]={0xc0, 0x0c};
+ d_content.insert(d_content.end(), (const char *) &marker[0], (const char *) &marker[2]);
}
else {
xfrLabel(d_recordqname, true);