Lines Matching refs:sbuff
97 static void append(secbuff *sbuff, const char *src);
2054 append(secbuff *sbuff, const char *src) in append() argument
2064 if (sbuff->data == NULL) { in append()
2065 sbuff->data = emalloc(sbuff->buflen); in append()
2066 sbuff->offset = 0; in append()
2069 newlen = sbuff->offset + srclen + 2; in append()
2070 if (newlen >= sbuff->buflen) { in append()
2071 while (sbuff->buflen < newlen) in append()
2072 sbuff->buflen += sbuff->buflen; in append()
2073 sbuff->data = erealloc(sbuff->data, sbuff->buflen); in append()
2078 if (sbuff->offset || flag) in append()
2079 sbuff->data[sbuff->offset++] = ' '; in append()
2081 memcpy(sbuff->data + sbuff->offset, temp, srclen); in append()
2082 sbuff->offset += srclen; in append()