pike.git / lib / modules / Protocols.pmod / DNS_SD.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS_SD.pmod:41: Inside #if constant(_Protocols_DNS_SD.Service)
   private protected string get_flat_txt_record(void|string|array(string) txt)    {    string txt_flat;       if (txt && stringp(txt))    txt = ({ txt });    if (arrayp(txt) && sizeof(txt)) {    txt_flat = "";    foreach(txt, string entry) {    entry = clip_utf8_str(entry, 255); -  txt_flat += sprintf("%c%s", (int) strlen(entry), entry); +  txt_flat += sprintf("%1H", entry);    }    }    return txt_flat;    }       //! Updates the TXT record for the service.    //!    //! @param txt    //! A TXT record with service-specific information. It can be given as a    //! plain string or an array of property assignment strings. To remove