Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
Dres_query.cpp323 char nbuf[MAXDNAME]; in res_nquerydomain() local
324 const char* longname = nbuf; in res_nquerydomain()
340 strncpy(nbuf, name, (size_t) n); in res_nquerydomain()
341 nbuf[n] = '\0'; in res_nquerydomain()
352 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_nquerydomain()
Dgetaddrinfo.cpp1828 char nbuf[MAXDNAME]; in res_querydomainN() local
1829 const char* longname = nbuf; in res_querydomainN()
1837 if (n + 1 > sizeof(nbuf)) { in res_querydomainN()
1842 strncpy(nbuf, name, n); in res_querydomainN()
1843 nbuf[n] = '\0'; in res_querydomainN()
1849 if (n + 1 + d + 1 > sizeof(nbuf)) { in res_querydomainN()
1853 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_querydomainN()