4 int __dn_expand(const unsigned char *base, const unsigned char *end, const unsigned char *src, char *dest, int space)
6 const unsigned char *p = src;
8 if (space > 256) space = 256;
12 if (p+1==end) return -1;
14 if (len < 0) len = p+2-src;
15 if (j >= end-base) return -1;
19 if (len < 0) len = p+1-src;
20 if (j>=end-p || j>space) return -1;
21 while (--j) *dest++ = *p++;
22 *dest++ = *++p ? '.' : 0;
27 weak_alias(__dn_expand, dn_expand);